It looks like you're new here. If you want to get involved, click one of these buttons!
<progress id="health" value=$strength max="35"></progress>
(print: "<progress id='health' value=25 max=35></progress>")
(set: $strength = "25") (print: "<progress id='health' value="+$strength+" max=35></progress>")
(print: '<progress id="health" value="' + (text: $strength) + '" max="35"></progress>')
Comments
https://jsbin.com/worufedora/edit?html,js,output
I know this works (without the variable) - But when I add the variable (..."+$strength+"...) it says "the number 25 isn't the same type of data"
However, if I do the following it works - But then I can't do additions or subtraction with $strength.
... unless I do something like (set: strengthInt = parseInt($strength,10))
Is there some formatting I'm missing?
Thank you so much - This works perfectly!