Hi, I'm working on a character sheet for Judge Dredd (Mongoose Traveller). My HTML / CSS skills aren't too hot, but I have enough to get by. However, I'm trying to correct a flaw in the auto-calculated fields for ability score modifiers. The desired results for each score are below: Score Mod 0 -3 1 -2 2 -2 3 -1 4 -1 5 -1 6 0 7 0 8 0 9 +1 10 +1 11 +1 12 +2 13 +2 14 +2 15 +3 I've been able to figure out that the formula floor(score-6)/3 works well enough for scores in the range 1 to 15, however, I get a modifier of -2 for the score of 0. Is it possible to insert a conditional statement similar to the following: if score = 0 then mod = -3; else mod = floor(score-6)/3 ? I hope my query makes sense. Thanks.