startsWith
Description
returns tf
= startsWith(str
,substr
)1
(true
) if the string
str
starts with the substring substr
, and
returns 0
(false
) otherwise.
checks if tf
= startsWith(str
,substr
,IgnoreCase=true)str
starts with substr
, ignoring any
differences in letter case.
Note
The startsWith
operator is not supported in Stateflow® charts that use C as the action language.
Examples
Input Arguments
Limitations
This operator does not support the use of Stateflow structure fields or messages. For more information about structures in Stateflow, see Access Bus Signals.
Version History
Introduced in R2021b