Conditional formating on a number
Need help on some conditional formating.
I have a drop down where the user choose one of two contract type. I've assigned export values to each of the contract type (2 or 4).
Then I need another field to format the number to either 2 decimal places or to 4 decimal places.
This is the first time I'm attempting something like and I'm learning all of this as I go.
I've looked at some resources but I'm not seeing something similiar to this.
I'm thinking I start with
if contract = this.getField("Contract type").value =4;
thenso the then would be the formatting, but I've not clue how I write that.
Then I know I have an else which would be the formatting for 2 decimal places.
These figures are monetary, so if I can include that in the formating would be great.
Help!
Clueless beginner