Is it possible to execute certain action depending on condition(if statement)

Yes, you can use “If” action:


“If” action takes expression, if it is true, actions, which is inside if statement, will be executed.

To put actions inside “If” statement, put cursor inside it, like it is shown on screenshot:

If conditions

Generally, if condition statement is arbitrary javascript. Here is some examples:



true

Execute always.



[[VARIABLE]] == "val"

Executes only if VARIABLE is equal to “val”



[[VARIABLE]].indexOf("val")<0

Executes only if VARIABLE don't contain substring “val”



If you are using “If Element Exists” action, you can place result variable right in “If” condition, as it is shown on video: