OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bedges on 17 Jun 2005, 22:03:42
-
how does one check for an empty string. specifically, the secondaryweapon (http://www.ofpec.com/editors/comref.php?letter=S#secondaryWeapon) command returns an empty string when the unit hasn't got a secondary weapon, and
? secondaryweapon unit_name == "" : goto "marker"
isn't working.
-
I just tried this and it worked for me:
?secondaryweapon player == "": goto "marker"
-Student Pilot
-
thanks. i'm an idiot ;)