Difference between revisions of "Dice/InternalContext/AddGroupExpression"

From DiceRoller Documentation
(Created page with "{{APIdoc|InternalContext.AddGroupExpression Method (DiceAST)}} Add a new group expression to the context, returning an identifier string suitable for Dice/DieResult/Data|Die...")
 
(No difference)

Latest revision as of 20:04, 27 April 2017

Add a new group expression to the context, returning an identifier string suitable for DieResult.Data.

  • Namespace: Dice
  • Assembly: DiceRoller (in DiceRoller.dll)

Syntax

internal string AddGroupExpression(
    DiceAST expr
)

Parameters

expr
Type: Dice.AST.DiceAST
Expression to add

Return Value

Type: System.String

An identifier that can be used to retrieve expr again via GetGroupExpression().

Remarks

This method (and GetGroupExpression) should be used instead of directly manipulating GroupExpressions.