Was this page helpful?

String.Eval

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    string.Eval(code : str) : any

    Evaluate a DekiScript expression.

    Usage Restrictions

    1.9.1 or later.

    Parameters

    Name Type Description
    code str The DekiScript expression to evaluate.

    Result

    The evaluation output.

    Samples

      Output

    To evaluate a string arithmetic expression:

    {{ string.Eval("2 + 3") }} 

    5

    Was this page helpful?
    Tag page
    Viewing 1 of 1 comments: view all
    Can this function run a script? I am asking because I am trying to pass a variable to a function which is the text of the name of the function. Is this possible?
    Posted 14:55, 12 Feb 2010
    Viewing 1 of 1 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by