Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

need js if else?

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

need js if else?

Post by n9mfk »

hi all im look for help if else
wood the blow work?

Code: Select all

if (btrnd >=  6.0) { return (langBaroTrend[0]); }   // Rising Very Rapidly
if (btrnd >  3.5) { return (langBaroTrend[1]); }   // Rising Quickly
if (btrnd >  1.5) { return (langBaroTrend[2]); }   // Rising
if (btrnd >  0.1) { return (langBaroTrend[3]); }   // Rising Slowly
if (btrnd == 0) { return (langBaroTrend[4]); }   // Steady
if (btrnd > -1.5) { return (langBaroTrend[5]); }   // Falling Slowly
if (btrnd > -3.5) { return (langBaroTrend[6]); }   // Falling
if (btrnd > -6.0) { return (langBaroTrend[7]); }   // Falling Quickly
}else{
btrnd = return (langBaroTrend[8]);
return(btrnd);
}
Beau
Post Reply