Add option for Variable Get
to use a "validation mode"
#630
Labels
Milestone
Variable Get
to use a "validation mode"
#630
Description
When a variable is typed as
Variant::OBJECT
, the underlying variable will initially start beingnull
. This means that users need to be mindful of this and check for this use case in their code. However, rather than adding the need for the users to introduce branch conditions in the graph, an optimizedVariable Get
node can automatically handle this:Conceptually, when the variable is
null
, the node exits theIs Not Valid
output pin. If the variable is notnull
, it exits theIs Valid
pin. This avoids the need for usingis_instance_valid
or null checks for such variables.Implementation ideas
No response
The text was updated successfully, but these errors were encountered: