Skip to content

Instantly share code, notes, and snippets.

@timlinux
Created February 20, 2015 13:16
Show Gist options
  • Save timlinux/5a0a10c380619e080eb7 to your computer and use it in GitHub Desktop.
Save timlinux/5a0a10c380619e080eb7 to your computer and use it in GitHub Desktop.
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) &rarr; 2</code><br>\n"
"<code>if(0, 2, 3) &rarr; 3</code><br>\n"
"<code>if(NULL, 2, 3) &rarr; 3</code><br>\n"
"\n"
"") );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment