🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
OCLOperators Contains
This page was created by Lars.olofsson on 2021-01-31. Last edited by Edgar on 2025-08-31.

Checks a substring that is present in a string:

'Hello'.Contains('e')

It returns true.

Please Note! Warning!
'Hello'->Contains('e')

Also, returns true and seems to work, but it's not subscribed the way you might expect and keeps returning the initial value.