Difference between revisions of "DcSetFilterExpression"

From Catglobe Wiki
Jump to: navigation, search
 
Line 21: Line 21:
  
 
''dcSetFilterExpression("Gender == 1 && Age == 18");''
 
''dcSetFilterExpression("Gender == 1 && Age == 18");''
 +
 +
''string a = dcGetFilterExpression(); ''
 +
 +
''print(a); // (Gender == 1 && Age == 18)''
  
 
'''Availability'''
 
'''Availability'''

Latest revision as of 10:37, 20 December 2011



dcSetFilterExpression

Set a conditional expression as a filter when calculating tabulation expressions.

Syntax

dcSetFilterExpression(condition)

Arguments

  • condition: is a string expression. It is a CGS conditional expression.

Return value

empty

Example

dcSetFilterExpression("Gender == 1 && Age == 18");

string a = dcGetFilterExpression();

print(a); // (Gender == 1 && Age == 18)

Availability

Version 5.5