Hello Folks,

Is there a way to assign values to a variable so that one word will suffice for the code?

for example:

Define LedOn GPIO.1=1
Define LedOff GPIO.1=0
Define PressButton GPIO.2=1;
Define ReleaseButton GPIO.2=0;

Loop:
LedOn Here it turns light on
Pause 1000
LedOff Here it turns light off

*****another example......
PressButton
.......
ReleaseButton

*******another example

if PressButton then
....
...
endif

goto Loop