Evaluating Code

This module incorporates a unsafe evaluation of code BIF.

This module implements the evaluate() function for usage in your applications. Please note that this UNSAFE function can be a security risk if not used properly. Please use it with caution. It's powerful but can be nasty if misused.

# For Operating Systems using our Quick Installer.
install-bx-module bx-unsafe-evaluate

# Using CommandBox to install for web servers.
box install bx-unsafe-evaluate
  • evaluate( expression ): Evalutes the expression dynamically from left to right and returns the reuslt of the rightmost expression.

name = "boxlang"
lastName = "majano"
op = "eq"

println( evaluate( "#first# #op# #second#" ) )

GitHub Repository and Reporting Issues

Visit the GitHub repository for release notes. You can also file a bug report or improvement suggestion via Jira.

Last updated

Was this helpful?