Author Topic: Is there something wrong with this?  (Read 403 times)

I have this script:

 
Code: [Select]
switch(%obj.client.mode){
 
  case "up":
  dobrickup(%name, %col);
  break;
 
  case "down":
  dobrickdown(%name, %col);
  break;
 
  default:
  dobrickup(%name, %col);
  break;
  }

Where %obj.client.mode == down, but it always does up? Is there something I am doing wrong?

use switch$ instead of switch

Oh yeah, $ for stings. Thanks much!