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 ?

  • baichen

    Member
    July 30, 2022 at 12:00 am

    ? can be used in vector-based condition . For example:

    ?[101b;`a;`b]
    `a`b`a

    $ is used in single condition :
    $[1b;`a;`b]
    `a