Let's say I want my condition to be based on whether or not final gathering is on/off and I create a global proc to query and return if it's true or false. Code: global proc int getFG_orWhatever(){ int $state = `getAttr "miDefaultOptions.finalGather"`; return $state; } And then create a condition based on that script... Code: condition -i -st getFG_orWhatever isFG_enabled; This is from the help files. Code: // Create a new condition, called "UndoNorRedo", which is true if // and only if undo is not available and redo is not available: global proc int isUndoNorRedo() { return (!`isTrue UndoAvailable` && !`isTrue RedoAvailable`); } condition -initialize -d UndoAvailable -d RedoAvailable -s "isUndoNorRedo" UndoNorRedo; I don't have any dependency conditions(-d UndoAvailable) which is the problem I think but I can't find the code for UndoAvailable and such to see how they're written.