Changes

Jump to: navigation, search

The Musings of Chin - Correct Variable Processor Use

9 bytes removed, 18:19, 16 July 2013
no edit summary
''"@ReportProperty(12345,recordcount)@"*1 + "@custom number@"*1''
The ''*1'' is used to explicitly cast the result into a numeric value. This is needed in the case so that perhaps , if your ''@custom number@'' contains an alphabetic character, the ''*1'' will convert it to a 0. If for some reason you use a @ReportProperty()@ that returns blank, ''""*1'' will also convert to a 0.
'''Problem 2''':
The following situations should be considered:
1) The ''.inRole '' variable will always return the values of true or false so there is no need to encapsulate this within double quotes (i.e. ''@me.inRole(Organization Contact)@'').
2) When the variable value you are retrieving contains double quotes within itself you will need to escape these, or encapsulate the variable within single quotes if you are sure the variable value does not contain single quotes within.
8,849
edits

Navigation menu