Home   Help Search Login Register  

Author Topic: empty strings...  (Read 840 times)

0 Members and 1 Guest are viewing this topic.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
empty strings...
« on: 17 Jun 2005, 22:03:42 »
how does one check for an empty string. specifically, the secondaryweapon command returns an empty string when the unit hasn't got a secondary weapon, and

Code: [Select]
? secondaryweapon unit_name == "" : goto "marker"
isn't working.

Offline Pilot

  • Contributing Member
  • **
Re:empty strings...
« Reply #1 on: 17 Jun 2005, 22:12:00 »
I just tried this and it worked for me:
Quote
?secondaryweapon player == "": goto "marker"

-Student Pilot

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:empty strings...
« Reply #2 on: 17 Jun 2005, 22:20:52 »
thanks. i'm an idiot ;)