Setting environment variables
eharetea

Setting environment variables inside an expression function.

setenv

Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Friday August 01st, 2008 01:45 PM

//you can set environment variables in custom expressions:

float Rotation(float x)
{
    if (x>1 && $VAR==0)
        execute("setenv VAR=1");
    else if (x<-1 && $VAR==1)
        execute("setenv VAR=0");

    return $VAR;

}