java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.decision.IsDefined

@BoxBIF public class IsDefined extends BIF
  • Constructor Details

    • IsDefined

      public IsDefined()
      Constructor
  • Method Details

    • _invoke

      public Object _invoke(IBoxContext context, ArgumentsScope arguments)
      Determine whether a given variable reference exists.

      For example:

      • isDefined( "luis" ) will test for the existence of an lmajano variable in any accessible scope.
      • isDefined( "variables.foo" ) will test for the existence of a foo variable in the variables scope.
      • isDefined( "brad.age" ) will test for the existence of an age key in the brad struct, in any accessible scope

      Specified by:
      _invoke in class BIF
      Parameters:
      context - The context in which the BIF is being invoked.
      arguments - Argument scope for the BIF.
      Returns:
      The result of the invocation