endif vs endon

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
DaveS
Normal user
Posts: 25
Joined: 12 Feb 2018, 17:35

endif vs endon

#1 Post by DaveS » 17 Jan 2019, 16:15

Hi Chaps,
Could someone explain the difference between endif and endon used in espeasy rules and when each one should be used ?
I have looked at the wiki and it seems endif is needed when if / else statements are used,would like some further explanation.
cheers

User avatar
iron
Normal user
Posts: 84
Joined: 24 Sep 2016, 08:37
Location: Veria, Greece
Contact:

Re: endif vs endon

#2 Post by iron » 17 Jan 2019, 16:25

Hello,

Endon ends an "On event"
Endif ends and If

on <trigger> do
if <test>
<action>
<action>
endif
endon

More here :

https://espeasy.readthedocs.io/en/lates ... Rules.html

-D
-D

DaveS
Normal user
Posts: 25
Joined: 12 Feb 2018, 17:35

Re: endif vs endon

#3 Post by DaveS » 17 Jan 2019, 16:40

Thanks,
Are looking at the linked age now,
Cheers

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests