I want a button on select to perform a patch and update the context of a variable. the patch works by itself and the update context works by itself. But when i use the && operator to do both at once it says that i have an invalid argument type. Is there something about the patch funtion that doesn't allow it to be used with an and operator?
syntax im using
UpdateContext({error2_v:false}) && patch(......)
Both work perfectly on their own
Thanks
Solved! Go to Solution.
If you want to perform multiple operations in a single statement (on behavior properties), you should use the ; operator (or ;;, depending on the language😞
UpdateContext({error2_v:false}); Patch(......)
If you want to perform multiple operations in a single statement (on behavior properties), you should use the ; operator (or ;;, depending on the language😞
UpdateContext({error2_v:false}); Patch(......)
Simple, precise and exactly what i needed! Thankyou very much!
You da bomb!
User | Count |
---|---|
125 | |
87 | |
86 | |
75 | |
69 |
User | Count |
---|---|
217 | |
181 | |
140 | |
97 | |
83 |