When setting interactive actions, can I set the same action only once in different situations?
- add a hotspot, assign the common actions to “OnClick” event (or another event you like)
- In different cases, use “trigger event” action, so it becomes
if isLogined == “0”
trigger hotspot OnClick
Else If isLogined == “1”
trigger hotspot Onclick
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.