PennController for IBEX › Forums › Support › Variable Math and Text Concatenation › Reply To: Variable Math and Text Concatenation
April 21, 2020 at 4:31 pm #5098
Thanks for your ever-prompt responses, Jeremy! I’ve almost accomplished what I need. The only problem now is that the computer seems to be trimming off blank space at the beginning and ends of the fixed strings. For example, my code to report reaction time to the user looks like this.
newVar("sRT").set(getVar("RT")) .set(v => v/1000) , newText("secs","000").text(getVar("sRT")) , newText("Reaction Time: ") .after(getText("secs")) .after(newText(" seconds")) .print() ,
Using 653 ms as an example, I should be getting “Reaction Time: 0.653 seconds,” but instead I’m getting, “Reaction Time:0.653seconds,” with the space before and after the number missing from the display despite being present in the code.