Hi All,
I currently have 3 scenes to achieve what I want. Each scene has LUA code to trigger the desired action. I have used three scenes as I do not know how to do what I want in one LUA but I am sure it is possible and having one scene with a well written LUA script I know will make more sense and be more efficient all round.
An example of what I want to achieve in simple terms:
Check status of virtual switch ?A?
If Virtual switch ?A? is on then do something
End
Else
Go to ?next step?
?next step?
Check status of virtual switch ?B?
If Virtual switch ?B? is on then do something
End
Else
Go to ?next step 2?
?next step 2?
Check status of virtual switch ?C?
If Virtual switch ?C? is on then do something
End
The current set up has each else / if in an individual scene such as:
Check status of virtual switch ?A?
If Virtual switch ?A? is on then do something
Else
Run Scene number?.
I believe the main issue I am encountering is the script keeps running through and won?t jump to the place I need it to.
I think for someone in the know this will be obvious but would be really helpful for some pointers if possible.
If I can address the question above I can post the code for scrutiny!
Thank you.