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...")
 
No edit summary
Line 6: Line 6:
  '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]]

Revision as of 13:12, 6 December 2022

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

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, but it's not subscribed the way you might expect and keeps returning the initial value.