Customer Portal

How do you form an ".in." clause?

Comments 2

  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello Jay,
    .in. operator serves to specify whether some value is contained in the list or in the map of other values, eg.:

    int value = 7;
    boolean is_in_list;
    is_in_list= value .in. [1, 2, 3 ,10, 50, 60];


    To find if some value matches a pattern you have to use regular expressions. Eg. to filter values, that contain "120" on position 6, you need to use filter expression like:

    $0.my_value ~= '\d{3}\w.120\dX'

    (See Pattern for regular-expression constructs)
  • Avatar
    jstrauss
    0
    Comment actions Permalink
    ah ha,

    Thanks:
    $0.HC_PROV_Taxonomy_Code_1 .in. ["152W00000X", "156FX1800X"]

    Works like you described. I couldn't find any example how to form the list. I was using ( ) instead of [ ]

    Thanks
    Jay

Please sign in to leave a comment.