Hi Makers, what wouldbe smartest way to setup filter conditions and inline functions for when a variable is a date? What date doesn’t matter, this is only about data validation.
Hi @Zbulo,
I wanted to share some advice with you. When working with conditions in your code, it’s best to use filters instead of inline functions like if-else. Filters allow for more control over the flow of your scenario, while inline functions can sometimes cause issues if the conditions aren’t as desired. Additionally, if you do end up needing to stop the flow of the code, it’s easier to do so with filters rather than with an inline function.
Hope this helps!
Thanks, in this case I actually need both because one is indeed for the flow of the scenario in a router and the other requires an if-else condition to modify a variable according to the result.
Would you be able to advise how to valdiate that a variable is indeed a date?
You can try to parse the variable and if its not a date it will throw an error
Is there an if error function I could use for that prupose?
I don’t want the scenario to error at this point and my use case is also the if/else inline value.
add an error handler to the module where you expect an error and use the resume error handler
this will continue the flow after the module you put it on with the value you wish to carry