OCLOperators Contains
(Created page with "Checks is a substring is present in a string 'Hello'.Contains('e') return true. ===== Please note! Warning! ===== 'Hello'->Contains('e') Also returns true and seems to work...")
 
(Updated Edited template to July 12, 2025.)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Checks is a substring is present in a string
<message>Write the content here to display this box</message>
Checks a substring that is present in a string:
  'Hello'.Contains('e')
  'Hello'.Contains('e')
return true.
It returns true.


===== Please note! Warning! =====
===== Please Note! Warning! =====
  'Hello'->Contains('e')
  '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.
Also, returns true and seems to work, but it's not subscribed the way you might expect and keeps returning the initial value.
[[Category:OCLOperators]]
{{Edited|July|12|2025}}

Latest revision as of 05:54, 20 January 2025

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