Forum Discussion

Sahil's avatar
Sahil
Contributor
4 years ago
Solved

Route to port 1 if output is string , to port 2 if output is number

Hi, I have to route based on the output type using router snap. Route to port 1 if output is string , to port 2 if output is number. How to I do that? Thank you.
  • bojanvelevski's avatar
    bojanvelevski
    3 years ago

    When you need to run the pipeline with earlier dates, is it going to be a manual configuration and run?

    You can simply configure the BatchParameterD1 like this:

    _Effective_Date == "" ? Date.now().toLocaleDateString() : _Effective_Date

    That way, if the parameter is not empty, it will be taken into consideration, if it is, than the current date will be generated.