Passing IDL Variables to ION Script





This example demonstrates the technique for passing IDL variables to ION Script.

We start with an ION Script variable with a value of zero:

Starting ION Script variable value is: 0.

Next, we create an IDL variable in an ION_DATA_OUT tag:
IDL variable value is:      0.102365
In our IDL code, we also dynamically create a temporary ION Script file. In it, we use the ION_EVALUATE tag to assign our ION Script variable with the value of our IDL variable.

Next, we use the ION_INCLUDE tag to include the dynamically generated ION Script file in the page.

Ending ION Script variable value is: 0.1023650.

Presto! The value of our ION Script variable is now equal to the value of our IDL variable.