Page MenuHomeFeedback Tracker

! isNull will always fail
Closed, ResolvedPublic

Description

using the operator '!' in conjunction with isNull always exits the script. However, using isNull without the operator '!' works perfectly fine.

Details

Legacy ID
2202067801
Severity
None
Resolution
No Bug
Reproducibility
Always
Category
Scripting
Steps To Reproduce

use the operator '!' with the command 'isNull'.

Event Timeline

somners edited Steps To Reproduce. (Show Details)Nov 13 2013, 4:58 PM
somners edited Additional Information. (Show Details)
somners set Category to Scripting.
somners set Reproducibility to Always.
somners set Severity to None.
somners set Resolution to No Bug.
somners set Legacy ID to 2202067801.May 7 2016, 5:24 PM

Have you got a script example?

somners added a subscriber: somners.May 7 2016, 5:24 PM

I was doing if (! isNull _item) where item was an object. I tested to be sure it was not null but my script never executed after that line. using a hit isNull _item displayed false, but the script didn't execute past the if statement, by changeing it to:

_value = isNull _item;
if (!_value)

it worked that way.

if (!isNull objNull) then {hint "not null"} else {hint "null"}

hint shows "null" as it should

Please provide a full example of your script where we can actually see what <i>_item</i> is.

Unable to reproduce, no reaction on feedback request for a long time. Closing as no bug.