Notifications
Clear all
[Closed] list of parameters?
Page 2 / 2
Prev
Mar 07, 2008 10:47 am
In the same order, i wanna check the existence of the property in the definition of a CA.
I mean, if you have a CA property like “$.modifiers[myCustAtt].foot” for example, if the slider “foot” exists on your CA, it will return the value and if not, you will have an error message (and not unfortunately “undefined” ).
So, i have searched if there is a function to test that, but i didn’t find anything. i don’t know if there is a simple way like “if $.modifiers[myCustAtt].foot !=undefined do …” or something similar to do it.
thks, remi
Mar 07, 2008 10:47 am
Use a try()catch() function to trap errors when trying to acces the value.
-Johan
Page 2 / 2
Prev