Pages: [1]
  Print  
Author Topic: (SOLVED) How to check for missing attribute value in a script?  (Read 147 times)
whitfa
Newbie
*
Posts: 9


« on: August 15, 2014, 03:42:58 PM »

Hi, can anyone help?  I'm a bit new to this.

I'm using a script inside studio.  I'm trying to find out if my
Code:
example["myAttribute"]
value is missing.

I have tried some of these so far:

Code:
example["myAttribute"]==?
example["myAttribute"]=='?'
example["myAttribute"]==null
isnull(example["myAttribute"])
missing(example["myAttribute"])
example["myAttribute"].missing()
etc..


I just want to check for a null value.

Thanks
« Last Edit: August 15, 2014, 05:45:28 PM by whitfa » Logged
whitfa
Newbie
*
Posts: 9


« Reply #1 on: August 15, 2014, 05:44:45 PM »


Woops!

Actually this DOES work:

Code:
example["myAttribute"]=='?'

The only reason I've been scratching my head for so long was because I incorrectly typed myAttribute, and the script didn't warn me for using an attribute name that doesn't exist.  Anyway - solved!
Logged
Pages: [1]
  Print  
 
Jump to: