isChecked Method

Purpose:

Returns whether a menu item is checked or not

Syntax:

ischecked(menu item name)

Comments: 

This method only applies to the menu object. Menu item name is the name that appears in the menu when the user clicks on it.

Example:

 

if menu.ischecked("Show Grid") = 1 then // flip grid on/off
menu.setchecked("Show Grid",0)
else
menu.setchecked("Show Grid",1)
endif