LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Newbie Q: Conditional output node (if condition is met, then output all)

    Employee
    Posted 01-14-2013 16:52

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: ADas

    Hi all,
    I'm very new to Lavastorm so apologies in advance if this is an easy solution.
    What I want to do is to have an output based on a condition - for example:
    The data set is a CSV with the following data-

    Header,,,,
    1,A,B,3,Two
    2,B,C,6,One
    12,D,E,Six
    Footer,,,,

    I want to have a node that will output all the data if, for example, the Header is in the correct format and none of the data if it is in an incorrect format.
    Can anyone help?

    Thanks!


  • 2.  RE: Newbie Q: Conditional output node (if condition is met, then output all)

    Employee
    Posted 01-23-2013 08:12

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: pdespot

    Hello, ADas.

    Can you tell me a little bit more about what the correct format you’re looking for is?

    In general, you can control the output using a filter node and a “where” clause in the BRAINscript. For example:

    emit *
    where 'Column1' == 12


  • 3.  RE: Newbie Q: Conditional output node (if condition is met, then output all)

    Employee
    Posted 01-25-2013 08:45

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: rboccuzzi

    ADas, I am just making sure we addressed this properly for you. It seems you got the answer you were looking for in this thread.

    If this is a different question or problem, please let us know.

    Cheers
    Rich