How to use conditionals in Computation Definition in Integrity
Hello Everyone,
I'm trying to make a integer field that uses a computation value. The definition would be something similar to an if statement in java.
For example, if "Field1" == "yes" AND "Field2" == "yes", i want the integer to be 2.
So far I've tried something like ("Field1" == "YES") AND ("Field2" == "YES") ? 2
and also
(
(
("field1" == "yes") and
(
("field2" == "one") or
("field2" == "two") or
("field2" == "three") or
("field2" == "four")
)
)
? 2
Both have given me syntax error. I'm not completely sure if I'm going towards the right path, as i can't find any documentations on statements like these.
If any of you guys can provide some insight, or even what programming language ptc uses, it would be much appreciated.

