Welcome to Tulip and the Tulip Community! We are glad you are here
I want to point you to a couple resources that can give you a great overview of Tulip triggers and help you get comfortable with how they work. https://support.tulip.co/docs/triggers
But to answer your question directly, I attached an example below of something that would work - there are options to tweak this / do the logic a little different so I encourage you to play around and see what works best for you. You can always test you logic in the “Developer Mode” as you build your apps.
Unfortunately, this is already in an else statement at @Arun 's App. That means twice the same Trigger is no solution (it would repeat the other actions as well…)
I would rethink the usecase.
You could:
check if UG1 or UG2 are empty and make one message “Make sure UG1 and UG2 are filled correctly”
Check for a minimum length of UG1 & or UG2
Check in separate triggers & use a helper variable to transport the result into the correct triggers else statement
You can make the use case as easy or complex as needed (you even could use a SQL connector function to deliver the result )
Based on your inputs I understand that we can’t able to include AND & OR condition’s in same if/then statement also If inside multiple if condition statements.
I have resolved my use case in another way. Let me explain solution to my use case here.
IF(TotalStage >= 1) AND (UG1 text is empty)
{
Show Error Message to fill UG1
}
ELSE IF(TotalStage >= 2) AND (UG2 text is empty)
{
Show Error Message to fill UG2
}
ELSE IF(TotalStage >= 3) AND (UG3 text is empty)
{
Show Error Message to fill UG3
}
ELSE IF(TotalStage >= 4) AND (UG4 text is empty)
{
Show Error Message to fill UG4
}
in fact it is possible to make an And&Or in one If statement… with limitations.
E.g. this approach, does not make separate Messages for UG1 and UG2, but checks both…
This looks fine. But in my use case I have display the different message statements. Is there any possibility to write if /throw kind of expression with custom ‘TEXT’ output?