@Bird ,
1.For your first question.
In PowerAutomate, the if function requires the else branch. So no matter what, the if should look like:
If(condition, trueBranch, falseBranch)
To avoid one or the other branch, you simply use null value like:
If(condition ,null , falseBranch)
or
If(condition, trueBranch, null)
- For the second question.
This approach is not valid in PowerAutomate as Or operator expects 2 boolean parameters. In your example, you used Or with 2 strings.
If(equals('A'),or('A','a')),'yes', 'no')
In this case, there are at least two way to achieve your goal, of course, you can choose your solution based on flow scenario:
if(contains(variables('Array'),'A'),'yes', 'no')
(where variable Array is an array previously defined as ["A","a"])
or
if(contains('Aa','A'),'yes', 'no')
Hope it helps !