Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The WasInState functions function checks whether the state with the given name has ever been visited for a particular object:

Code Block
languagetext
WasInState(in object: any[1], in stateName: String): Boolean


Both arguments of the function are required. For example"

Code Block
languagetext
if (WasInState(obj, "S1") {
	WriteLine("Obj was in state S1.");
}