Page 1 of 1

to differentiate between runmode and browsemode

Posted: Mon Jul 23, 2007 4:29 pm
by selvabits
can anyone please tell me how to differentiate between runmode and browsemode using script itself ........
i dont want certain parts of my on openstack to be executed while it is in browsemode ... so i want to know if it is runmode or browsemode and then execute it only if it is in runmode

Posted: Mon Jul 23, 2007 6:33 pm
by Klaus
Hola selvabits,

to make it clear:
run mode = browse (NOT edit) mode
edit mode = edit! mode

Code: Select all

...
if the tool = "browse tool" then
  ## you are in browse mode
  ## do your browse thingie
else
  ## in this case "THE TOOL" = "pointer tool"
  ## you are in edit mode
  ## do your edit thingie
end if
...

Best from germanski

Klaus