Main Content
endsWith
Description
returns tf
= endsWith(str
,substr
)1
(true
) if the string
str
ends with the substring substr
, and returns
0
(false
) otherwise.
checks if tf
= endsWith(str
,substr
,IgnoreCase=true)str
ends with substr
, ignoring any
differences in letter case.
Note
The endsWith
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