Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: empty strings...  (Read 948 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 ;)