Forum Discussion
convert number variable to text
is it possible?
17 Replies
- JasonMorseCommunity Member
It would be Extremely helpful if storyline converted number to string when checking what a var is equal to. example i have a custom question slide where the user fills in blanks like 4 or 5 per slide. Some have multiple answers that have to be tested for. the client would like the user to be able to say type in 4 or four or 4mm as the answer BUT storyline will not do this on its own. This also something a less knowledgeable storyline author would have issues figuring out why its not working.
Hi Jason,
If you have multiple answers, a fill-in-the-blank may work better for you:
By design, each slide can have one fill-in-the-blank question, but many in the community have created slides with multiple:
- JasonMorseCommunity Member
There are multiple text input boxes on screen at once. example, textinput 1, with correct answers of 4, four, 4mm. textinput 2 with correct answers of 6, six, 6mm.
when doing the actions to to see if the imputed text is is one of those it will see 4, and 6 as not being = to the correct answers as storyline doesnt convert number to string. it works perfectly fine for questions that do not need to have just a number as a possible answer.
And yes I could just use javascript and do it fully myself but this should be something storyline does on its own. it also will confuse newer authors as to why its not working if they have a limited understanding of how programing actually works.
Hello Jason!
Thank you for returning with additional details! I'd be happy to share this with my team in the form of a feature request. I'll link this conversation so that I can return when I have an update to share.
You can always share ideas by submitting a feature request!
Related Content
- 9 months ago
- 9 months ago
- 9 months ago