Welcome, Guest Friday 25th April 2014, 03:35:05
   Home   Help Search Login Register  

OFPEC Forum

Author Topic: isNull issue (SOLVED)  (Read 234 times)
0 Members and 1 Guest are viewing this topic.
Tyger
Former Staff
****
Offline Offline


I was at OFPEC when it still had dirt floors...


WWW
« on: 06 Dec 2008, 02:04:16 »

Well I find this a bit odd, since it seems as if many others have used similar syntax:

Trigger1
Condition: isNull soldier_1
OnAct: hint "The soldier is null"

SoldierWB
Name: soldier_1
Presence: 50%

When I preview, irregardless if the soldier is present or not, nothing displays.

I'm running v1.14 - is this maybe the issue? I can't seem to find any explanation...  Don't Know
« Last Edit: 06 Dec 2008, 05:36:46 by Tyger » Logged

"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08
Mandoble
Editors Depot
Administrator
*****
Offline Offline



WWW
« Reply #1 on: 06 Dec 2008, 02:47:38 »

mmm, might be soldier_1 isNil when the soldier is not present.
You might try: (isNull soldier_1) || (isNil "soldier_1")
Logged

Tyger
Former Staff
****
Offline Offline


I was at OFPEC when it still had dirt floors...


WWW
« Reply #2 on: 06 Dec 2008, 05:18:16 »

Interesting. I guess the whole null versus nil thing is a wee confusing.

Thanks mandoble, you were indeed right!
Logged

"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08
Pages: [1]   Go Up
  Send this topicPrint  
 
Jump to: