Go to: Synopsis. Return value. Python examples.


isTrue( string )

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

isTrue is undoable, NOT queryable, and NOT editable.

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

Return value


Python examples

import maya.cmds as cmds

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