Hi Rodriga,
Can you please explain your problem in details, how you want to validate these values and how it will give you result for the third value.
Along with that just keep in mind the If condition syntax in outsystems look like this:
If(<your condition>, <what to do if condition is true>, <what to do if condition is false>)