Is there a way to include an "or" statement within an "if" statement?

Hi, does freeFEM support “or” statements inside “if” statements? If so, what’s the syntax? I know there’s an “and” statement, the syntax for which is && (I think).

Cheers!

Hi yes use the symbol pipes: ||. For example

if(condition1 || condition2)

1 Like

Ah right, of course. Thanks!