using the operator '!' in conjunction with isNull always exits the script. However, using isNull without the operator '!' works perfectly fine.
Description
Description
Details
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
Comment Actions
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.
Comment Actions
if (!isNull objNull) then {hint "not null"} else {hint "null"}
hint shows "null" as it should
Comment Actions
Please provide a full example of your script where we can actually see what <i>_item</i> is.
Comment Actions
Unable to reproduce, no reaction on feedback request for a long time. Closing as no bug.