concatenation confusion


i have properties set multiple choice question. working (i think) except go marker portion of script. on each sprite (answer) sits script. when it's clicked on script determins if correct answer or not , collects number of question , moves marker called xxerror or xxcorrect (xx question number collected in panswer. want add panswer error or correct. did correctly?
for example, question 2q2. property of pinquirynumber 2q2 , after determining if correct or not (from boolean property panwer) assigns treponse 2q2error or 2q2correct. right goes 2q2correct no matter what.

if panswer = false
tresponse = pinquirynumber&"error"
else
tresponse = pinquirynumber&"correct"
end if

sound(3).play(member(pplayresponse))
go marker(tresponse)
cursor -1

end

i;m not sure why named question concatenation. part
seems working should. problem having
panswer coming true. part of code did
not post (the part figures out if answer correct or not)
seems returning correct time (if indeed
jumping 'correct' frame). script generates
the value of panswer , suspect you'll find problem.


More discussions in Director Lingo


adobe

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support