Use a conditional to get a number

Use a conditional to get a number