user3091062
user3091062

Reputation: 11

Can we do case insensitive comparison in nxbre's if element

I am using NxBre 3.2.0. I want to compare two strings in case insensitive manner but did not find any option in IF element. Is it possible to do so.

Upvotes: 1

Views: 127

Answers (1)

David Dossot
David Dossot

Reputation: 33413

I supposed you're using the Flow Engine since you mentionned If.

To perform a case insensitive comparison use the ObjectLookup element to call statically String.Compare(left,right,true), then test the result to be equal to 0.

See: http://msdn.microsoft.com/en-us/library/zkcaxw5y%28v=vs.110%29.aspx

Upvotes: 0

Related Questions