JADE Environment Development Ideas

What's new in the upcoming JADE release?

IMPROVED DEVELOPER EFFICIENCY. ENHANCED SECURITY. SMOOTHER INTEGRATION

The JADE 2022 release meets tomorrow’s business demands.


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