OCLOperators Contains
(Adding message template to the top of the page)
(Replacing message template with parser tag)
Line 1: Line 1:
{{message|Write the content here to display this box}}
<message>Write the content here to display this box</message>
Checks a substring that is present in a string:
Checks a substring that is present in a string:
  'Hello'.Contains('e')
  'Hello'.Contains('e')

Revision as of 07:47, 17 June 2024

This page was created by Lars.olofsson@mdriven.net on 2021-01-31. Last edited by Edgar on 2025-01-20.

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.

MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments