Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] : How to create variable with nested variable like an object #38

Open
VimalKumarS opened this issue Jul 22, 2018 · 0 comments

Comments

@VimalKumarS
Copy link

How to create variable with nested variable like an object

VariableCollection variables = context.Variables;
variables.Add("a.f", 100);
variables.Add("b", 1);
variables.Add("c", 24);

        IGenericExpression<bool> e = context.CompileGeneric<bool>("(a.f == 100"); //a.f not working

Even tried nested varaible
ExpressionContext context = new ExpressionContext();
VariableCollection variables = context.Variables;

        //variables.Add("a", 100);
        variables.Add("b", 1);
        variables.Add("c", 24);
        ExpressionContext context1 = new ExpressionContext();
        VariableCollection variables1 = context1.Variables;
        variables1.Add("f", 100);
        variables.Add("a", variables1);

Any help or direction?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant