%META:TOPICINFO{author="TWikiContributor" date="1364026611" format="1.1" version="3"}% %META:TOPICPARENT{name="TWikiVariables"}% #VarCALCULATE ---+++ CALCULATE{"formula"} -- handle spreadsheet calculations outside tables * The =%CALCULATE{formula}%= variable is handled by the SpreadSheetPlugin. Over 100 functions are available, such as =$ABS()=, =$EXACT()=, =$EXISTS()=, =$GET()/$SET()=, =$IF()=, =$LOG()=, =$LOWER()=, =$PERCENTILE()=, =$TIME()=, =$VALUE()=. * Syntax: =%CALC{formula}%= * Examples: * =%CALC{$EXISTS(Web.SomeTopic)}%= returns =1= if the topic exists * =%CALC{$UPPER(Collaboration)}%= returns =COLLABORATION= * Note: The CALCULATE variable is handled inside-out & left-to-right like ordinary TWiki variables, but it does __not__ support functions that refer to table cells, such as =$LEFT()= or =$T()=. Use [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarCALC][CALC]] instead. * Category: DevelopmentVariables, TablesAndSpreadsheetsVariables * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarCALC][CALC]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarIF][IF]], %SYSTEMWEB%.IfStatements, SpreadSheetPlugin