Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=Breaking+Changes+for+Power+Database+Fields+-+15486471
widthauto

Excerpt

We try really hard to make sure every new version of Power Scripts Database Fields will work with your existing scripts and configurations. However, sometimes in order to bring new features to life we need to break a few eggs.

...

Code Block
return 3.0/2.0;

//or, explicity declare the type

number x = 3;
number y = 2;
return x/y;

The introduction of the integer type has also the following consequence:

Code Block
try {
   .....
   if( ... ) {
    throw 1; //integer!
   }
   if( .... ) {
    throw 2; //these are integers literals now
   }
} catch integer i {
  //you need to add this block in order to deal with the above throws
} catch number n {
  //you need to move code from here in the above block!
}

Packages - We added package and the “use“ keyword, please consider “use“ and “package“ keywords as inappropriate for variable names ('package' may be used in the future)