Created
February 20, 2015 13:16
-
-
Save timlinux/5a0a10c380619e080eb7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gFunctionHelpTexts.insert( "if", QCoreApplication::translate( "function_help", "<h3>if() function</h3>\n" | |
"Returns the second argument if expression is true otherwise the third argument.\n" | |
"<br>\n" | |
"This function takes three arguments.\n" | |
"<h4>Syntax</h4>\n" | |
"<code>if(expression, result_if_true, result_if_false)</code><br>\n" | |
"\n" | |
"<h4>Arguments</h4>\n" | |
"<code>expression</code> - any valid expression or value, regardless of type.\n" | |
"<code>result_if_true</code> - any valid expression or value, regardless of type.\n" | |
"<code>result_if_false</code> - any valid expression or value, regardless of type.\n" | |
"<br>\n" | |
"\n" | |
"<h4>Example</h4>\n" | |
"<!-- Show example of function.-->\n" | |
"<code>if(1, 2, 3) → 2</code><br>\n" | |
"<code>if(0, 2, 3) → 3</code><br>\n" | |
"<code>if(NULL, 2, 3) → 3</code><br>\n" | |
"\n" | |
"") ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment