Is valid what does it means? How to use it ?and when to use it?

Hey Whisper,

Both of the IsValid node’s perform a Null-Check, which essentially means it makes sure the object reference used as the IsValid input (usually a variable) holds a valid reference to an object. If the variable is un-set, meaning null, it will either use the not valid output from the executable macro node (white wires), or will return false if using the function node that outputs a boolen value (red wire).

To use it with the function node just add a branch node and use the boolean return value from the IsValid node as the input for the branch node, or use the inline macro node as the branch so you have 2 outputs, one for normal execution, the other to handle the error and move on.

It’s most often just used to check and make sure the object is loaded properly before you try and use it. The fact that it can handle certain errors for you is a bonus!

Hope that helps!

1 Like