strlen(str) returns the number of grapheme clusters in str.
Signature
Example
Validate that a required token variable has a minimum length before attempting a deployment:deploy_token is shorter than 32 characters, the task is skipped with a condition note instead of failing with an authentication error downstream.
Notes
strlencounts grapheme clusters, not bytes or code points. A multi-byte character or combined character sequence counts as one.- For byte length, there is no dedicated function. Most use cases care about character count.