Skip to main content
Newcomer
May 19, 2023 4:08 AM UTC
Solved

XFEqualsIgnoreCase

Hi Experts,

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

    ChristianW
    Employee - Advisor
    May 19, 2023 5:58 AM UTC

    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
    Employee - Advisor
    Employee - Advisor
    May 19, 2023 5:58 AM UTC

    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.