OCLOperators Contains
No edit summary
(Automatically adding template at the end of the page.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Checks is a substring is present in a string
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]]
[[Category:OCLOperators]]
{{Edited|July|12|2024}}

Latest revision as of 15:38, 10 February 2024

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.

This page was edited 99 days ago on 02/10/2024. What links here