(It's an old AppleScript that converts wind in mps to the Beaufort scale)
Thanks in advance.
John
- Code: Select all
if value of variable "Wind" as number ≤0.2 then
set value of variable “Wind Beaufort to "0"
else if value of variable "Wind" as number >0.2 and value of variable "Wind" as number <3 then
set value of variable "Wind Beaufort" to "1"
else if value of variable "Wind" as number >2 and value of variable "Wind" as number <4 then
set value of variable "Wind Beaufort" to "2"