Skip to content

Usage of model variable instead of name in expressions. #253

Closed Answered by ansibleguy76
nikos445 asked this question in Q&A
Discussion options

You must be logged in to vote

Also note I'm using an inline function, I often use this for better visibility :

((x=true,y='mydefault',z='4')=>{ return something using variables x,y,z })( $(var1), $(var2), $(var3) )

The above defines an inline function, with 3 parameters each having a default value in case undefined is passed.
You can then pass your 3 variables in an inline execution. Make sure you use ignoreIncomplete to handle undefined fields.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@ansibleguy76
Comment options

@ansibleguy76
Comment options

Answer selected by nikos445
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #252 on January 21, 2025 13:19.