Forum Discussion

BCG's avatar
BCG
New Contributor II
2 years ago
Solved

XFEqualsIgnoreCase

Hi Experts,

I want to limit my cons member only to "Elimination". can I use "api.pov.cons.Name.XFEqualsIgnoreCase("Elimination")"

  • Yes, that is possible, but comparing strings with ‚=‘ or ,XFEqualsIgnoreCase‘ is more time consuming than comparing two integers, so I would prefer using "api.pov.cons.MemberId = dimconstants.Elimination".

    If you test it once, the difference is minimal, but inside loops, it can make a difference.  

1 Reply

  • ChristianW's avatar
    ChristianW
    Valued Contributor

    Yes, that is possible, but comparing strings with ‚=‘ or ,XFEqualsIgnoreCase‘ is more time consuming than comparing two integers, so I would prefer using "api.pov.cons.MemberId = dimconstants.Elimination".

    If you test it once, the difference is minimal, but inside loops, it can make a difference.