Skip to content

What's the correct way to use setif()? #920

Answered by DmitrySharabin
GalinhaLX asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there,

The correct form of the setif() action is: setif(condition, property, expression). So, you just add the new (third) condition argument before the exsisting two arguments of the set() action (and rename the action, of course 😊).

In your case, it would look like this: setif(quantity > 0, quantity, quantity - 1).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GalinhaLX
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