Go to: Synopsis. Return value. Python examples.

Synopsis

isTrue( <condition name> )

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

isTrue is undoable, queryable, and editable.

This commmand returns the state of the named condition. If the condition is true, it returns 1. Otherwise it returns 0.

Return value

None

In query mode, return type is based on queried flag.

Python examples

import maya.cmds as cmds

cmds.isTrue( 'SomethingSelected' )
# Result: 1 #