I am trying to create a simple phython script..
1)
how can I create a if this do this or else do that
if var = ('yes')
do turn on
else
do turn off
2)
Hos can I use goto or labels?
if var=(''yes') goto yes
if var=('no') goto no
goto end
:yes
do turn on
:no
do turn off
:end
I am very newbee to python, so any help will be good...
Eddie