KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ If conditions $ vs ? Re: If conditions $ vs ?

  • sujoy

    Member
    August 3, 2022 at 12:00 am

    Apart from vector-based condition mentioned above, ? Will always run the fail condition unlike $.

    $[1;2;err]
    2
    
    ?[1;2;err]
    'err
    [0] ?[1;2;err]