Page 1 of 1

newb that is having problems...

Posted: Mon Jul 12, 2010 11:41 am
by Wynn
hi! i'm rather new to revolution media and have been trying to get my head around the syntax. I need help with a few things.
i need to make numbered 'boundaries', between certain numbers, you get a certain output if that number is inserted into a text field.

Image
this is the error i encounter and want to be able to get round this, any ideas?

-Wynn

Re: newb that is having problems...

Posted: Mon Jul 12, 2010 1:42 pm
by Klaus
Hi Wynn,

you have to check every condition separately and use the correct syntax :)

1. Get the content of the field (Everything in a field is TEXT, so you cannot write "...number in field XYZ"!)
2. Check BOTH conditons, see below!
3 NO period at the end of a script line :D!

Code: Select all

on mouseup
   put fld "studentmark" into tNumber
   ## Now check the TWO conditions:
   if tNumber >= 0 AND tNumber <= 40 then
     answer "Fail!"
  end if
end mouseup
Best from germany

Klaus

Re: newb that is having problems...

Posted: Mon Jul 12, 2010 1:51 pm
by Wynn
oh wow thanks Klaus, it makes sense now!