Two!
This takes advantage of being able to assign multiple input values to variables.
"I'm lazy. I like to program in a manner that supports me being as lazy as possible. Big Grin"
I am that way with typing, unfortunately NOT with Editing!
Yeah 2 liner to show both conversions good too! Saves on variables +1
Code: (Select All)
Input "Enter a Number to convert , (comma) 1 to convert to mm from inches or ,(comma) any other for inches "; num, op%
Print _IIf(op% = 1, num * 25.4, num / 25.4) ' 25.4 mm per inch
This takes advantage of being able to assign multiple input values to variables.
"I'm lazy. I like to program in a manner that supports me being as lazy as possible. Big Grin"
I am that way with typing, unfortunately NOT with Editing!
Yeah 2 liner to show both conversions good too! Saves on variables +1
b = b + ...