NEW RELEASE! The 2024x Refresh2 Hot Fix 1 was released on May 2, 2025. For more information, see 2024x Refresh2 Hot Fix 1 Version News.

The InState function checks if a particular object is in the state with the given name:
 

InState(in object : any[1], in stateName : String[1]): Boolean[1]


Both arguments of the function are required. For example:

if (InState(ccobj, "Operating")) {
	force = ccForce;
} else {
	force = acc * 2;
}



Activity

All
Personal filters
All