SigServer:SignatureMath: Difference between revisions

Jump to navigation Jump to search
Line 77: Line 77:
=== Miscellaneous ===
=== Miscellaneous ===


==== abs ====
==== notempty ====
  ''number'' '''abs'''(''number'' value);
  ''mixed'' '''notempty'''(''mixed'' value[, ''string'' true[, ''string'' false]]);
Returns the absolute value of a number
Check's if the first argument is not empty. Returns TRUE or FALSE if the optional arguments aren't specified. If they are specified it returns the second argument if TRUE and the third argument if FALSE.


'''Example'''
'''Example'''
  abs(1);  // Returns 1
  notempty("");                     // Returns false
  abs(-1); // Returns 1
  notempty("Foobar");                // Returns true
  notempty(6 > 2);                   // Returns true
notempty("", "Not empty", "Empty") // Returns "Empty"
256

edits

Navigation menu

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.