Usage of model variable instead of name in expressions. #253
-
Is there a way to use "Model" variable instead of "Name" in expressions? I am trying to do something like this:
where x and y is 2 Remote API requests and "z" is a local option after one of requests return a value... Any ideas? name: z shall be the same always as it is used by multiple other expressions ... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Works awesome! :) That's perfect! |
Beta Was this translation helpful? Give feedback.
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.