Home
Categories
Dictionary
Download
Project Details
Changes Log
FAQ
License

Scripts global fields


    1  Examples
       1.1  Logger example
       1.2  Helper example

Each Script has access to the following global fields:

Examples

Logger example

To use the logger:
      public void apply() {
         logger.append("Some text");
      }

Helper example

To use the logger:
      public void apply() {
        double result = helper.doSomeComputation(1.2d);
        context.echo(result);
      }

Categories: api

Copyright 2019-2020 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence