256
edits
Line 74: | Line 74: | ||
=== Variables === | === Variables === | ||
SigMath have support for variables. It supports both [[SigServer:Variables|AniDB variables]] and [[SigServer:Variables|user defined variables]]. AniDB variables are prefixed with $ and user defined variables with @ | SigMath have support for variables. It supports both [[SigServer:Variables|AniDB variables]] and [[SigServer:Variables|user defined variables]]. AniDB variables are prefixed with $ and user defined variables with @. | ||
'''Example''' | '''Example''' | ||
<nowiki>{{ $example }}</nowiki> | <nowiki>{{ $example }}</nowiki> | ||
<nowiki>{{ @example }}</nowiki> | <nowiki>{{ @example }}</nowiki> | ||
The first block outputs the AniDB variable named ''example''. The second block outputs the user defined variable named ''example''. A user defined variable may have the same name as an AniDB variable. The variables are only lowercase alphanumeric and may contain _ | The first block outputs the AniDB variable named ''example''. The second block outputs the user defined variable named ''example''. A user defined variable may have the same name as an AniDB variable. The variables are only lowercase alphanumeric and may contain _ as well. | ||
=== Functions === | |||
SigMath support a range of functions. Arguments are separated by comma, and each argument are evaluated before it is passed on to the function. For a complete list of all functions see the [[#Function Reference|function reference]]. | |||
== Function Reference == | == Function Reference == |
edits