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