### Title

Help with a field calculation

### Post

Hi

Hope someone can help! I am trying to place a calculation in field (A) but need help on how to compile.

If (Window Width Metric > Window Height Metric; "L")

or If (Window Width Metric < Window Height Metric; "P")

also if both the above fields above are empty I would like to insert text in the field (A)

Thanks

Case is a function that you can look up in FileMaker help. It's a more sophisticated version of an If function.

Then this field can be a field of type calculation:

Case ( IsEmpty ( Window Width Metric & Window Height Metric ) ; "A" ;

Window Width Metric > Window Height Metric; "L" ;

Window Width Metric < Window Height Metric; "P" ;

"E" )

Select Text as your result type.