How to use OR function with if conditions

Hi , why appsheet canโ€™t read this formula , is there something wrong ???
OR
(
if([categorie1]=Optique,โ€œMontureโ€,""),
if([categorie1]=Solaire,โ€œMontureโ€,"")
)

Solved Solved
0 8 123
1 ACCEPTED SOLUTION

Hi @Soufiane_M

Something like that ?

IF(
OR([categorie1]="Solaire",
   [categorie1]="Optique"),
"Monture",
"")

View solution in original post

8 REPLIES 8

Steve
Platinum 4
Platinum 4

Youโ€™re using OR() wrong.

See also:

I read that topic ,I can do simple formulas , but now am trying to apply it with an IF function more complicated which is not explained in the topic .But I unfortunately I get always an error I want to find it out

ORs return a true/false(yes/no). Your if formulas return text values. I think what you want is IF(OR(โ€ฆ), Monture,"") or you could use an IFS().

I want a formula which will return text values โ€œMontureโ€ in two cases :
if([categorie1]=Optique,โ€œMontureโ€,"") OR if([categorie1]=Solaire,โ€œMontureโ€,"")

Hi @Soufiane_M

Something like that ?

IF(
OR([categorie1]="Solaire",
   [categorie1]="Optique"),
"Monture",
"")

GREAT , thatโ€™s the solution for my question it works when only one returnes Thank youu , but now what if I multiple returnes for exemple :
if [categorie1]=โ€œoptiqueโ€ retunes โ€œmontureโ€
or
if [categorie1]=โ€œSolaireโ€ retunes โ€œsolaireโ€

??

Please have a look to the article about โ€œSWITCHโ€

Great hopefully I find this tutorial on Youtube explain well the SWITCH FUNCTION AppSheet SWITCH() Expression - YouTube Thank you very much guys

Top Labels in this Space