JADE Environment Development Ideas

What's new in the JADE 2025 release?

IMPROVED DEVELOPER EFFICIENCY. ENHANCED INTEGRATIONS. NEW WEB DEVELOPMENT FRAMEWORK

The Jade 2025 release focuses on modernising the developer experience and helping you build faster, smarter, and more scalable applications.


Start your update to JADE's latest release

Shorter Conditional Statements

When writing a conditional you write it like this:
if name = "apple" or name = "banana" or name = "carrot" then
could we shorten this by doing:
if name = "apple" or "banana" or "carrot" then
  • Guest
  • May 1 2019
  • Future consideration
HistoricalComments
Paul Daigneault 10/10/2017 8:42:09 PM
Nice find, looks like there is also a isLike method; perhaps the NFS should be to document these and make them available for common use.

Sam Stokell 10/10/2017 5:00:59 PM
Hi James, thanks for that. Never seen this before. Will try to keep it in mind going forward as long as it performs OK. Cheers, Sam

James Burnby 10/10/2017 3:45:28 PM
Hi Sam, have you seen the isOneOf function? It doesn't seem to be in the jade documentation however.

vars
name : String;
begin
name := "apple";
write name.isOneOf("apple", "banana", "carrot");
  • Attach files
  • +4