Determines if a parameter exists on a character.
Returns true if the given parameter exists on the given character and false if it does not.
Parameters
hasParameter characterName parameterName [-solving] |
Name | Type | Required | Comments |
---|---|---|---|
characterName | String | Yes | Defines the name of the character to check if the parameter exists on. |
parameterName | String | Yes | Defines the name of the parameter. |
See above syntax.
boolean
Returns true if the character has the parameter and false if it doesn't.
// Check if the Character named "Bob" has a parameter named "UpperArmLength" if(`hasParameter "Bob" "UpperArmLength"`) { print "Bob has a parameter named UpperArmLength"; } else { print "Bob does not have a parameter named UpperArmLength"; } |