Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

If you need to add a piece of code to a calculation logic that is regarded as incorrect by the built-in syntax checker and it prevents you from saving it, add the following line at the beginning of the element script:

if (api.isSyntaxCheck()) return

If you want to exclude only one line from the evaluation, you can use the following construction:

def pli = api.isSyntaxCheck()? [:] : api.getElement("TargetPricePLI")


This feature is not intended and will not work as a workaround for cases when the coding style is bad:

  • If there are real issues (bugs) in your code, of course this does not help.
  • If you have "null" references, it is a better practice to fix it by using "?:"

But, for example, when the code works fine in the Test Drive but it is not possible to save the logic, then you can consider disabling the checker.

  • No labels