Problem with a switch control structure

Girard Damien dam-pro.girard at laposte.net
Sat Mar 18 05:55:23 EST 2006


Hi all,

I have got this script, and I have got a problem.

put "1" into toto
switch toto
  case toto > 1
  answer ">1"
  break
case toto < 1
  answer "<1"
  break
case toto = 1
  answer "=1"
  break
end switch

The problem is that none of these case is executed. Problably I have  
forget something, but I don't know what.

Regards,

Girard Damien



More information about the Use-livecode mailing list