Help with converting old Wind AppleScript to Python
Posted: Sun Dec 04, 2022 7:33 am
Can someone help us with the puzzle below?
(It's an old AppleScript that converts wind in mps to the Beaufort scale)
Thanks in advance.
John
(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"