can I set the same action only once in different situations?

When setting interactive actions, can I set the same action only once in different situations?

@hnrichie

  1. add a hotspot, assign the common actions to “OnClick” event (or another event you like)
  2. In different cases, use “trigger event” action, so it becomes

Case 1:
if isLogined == “0”
trigger hotspot OnClick
Show xxxx

Case 2:
Else If isLogined == “1”
trigger hotspot Onclick
Hide xxxx

Remove the condition and put it first. Then it will always happen. Just make sure the case after it is set to “IF” and not “ELSE IF”

If your “isLogined” variable can only ever be 1 or 0 then you have unnecessary duplication of the cases.

So your first case will always happen and do the things that should always occur. All the cases following can have conditions and be the things that only sometimes occur. Your first case should say “If true” for the condition, which just means it always happens.