I am using ArcMAP 10.8 and i am trying to add a new field to a table. So far so good..
In this new field i want a number between 1 and 5. The number is decided based on what is written in three other fields in the table ([MATERIAL], [YEAR] and [DIM]) So therefore i am using the Field Calculator. My problem is that i have never gotten the OR statement to work without writing the whole code again.
Therefore I have to write it like this to work:
dim n
if [DIM]=< 100 and [YEAR] =< 1959 and [MATERIAL] = "SJG" or [DIM]=< 100 and [YEAR] =< 1959 and [MATERIAL] = "SJ" then
n = 5
But, I want to write it like this (or something similar);
dim n
if [DIM]=< 100 and [YEAR] =< 1959 and [MATERIAL] = "SJG", "SJ" then
n = 5
I would really appriciate if there is some solution to this problem 😉