All pastes #385765 Raw Edit

Stuff

public text v1 · immutable
·published 2007-03-08 01:57 UTC
rendered paste body

$CALC
------------
Description: Used to do basic math functions
Need to know: + (addition), * (multiply), / (divide), - (subtraction), ^ (Exponent), Also you can use brackets to place which to do first (Bedmas,PEMDAS), Use the % to get the remainder ex. $calc(4 % 3) == 1 instead of $calc(4 / 3) == 1.333333
Examples: You can use them in $calc() as parameters for example $calc(5 + 5 * 10 / 2) would come out to be 30.  
--------------------
$asc() && $chr()
----------
$asc()

Description: Returns the ASCII Number of the Character
Need to know: Used with $chr alot.
Examples: $asc(A) returns 65 or $asc(*) returns 42 while $asc(9) returns 57

$chr()

Description: Returns the character with ASCII Number.
Need to know: Used with $asc alot.
Examples: $chr(65) == A, and $chr(42) == *, while $chr(57) returns 9, and also you can use both of asc and chr combined like this $chr($asc(h)) and it will return h but instead of finding out the number for h you can just put it inside of chr :).

------------------------
$left(text,number)
-------
Description: Returns Number left characters of text
Need to know: If Number is a negative value it returns all but Number characters
Examples: $left(goodbye,4) Would return good, $left(goodbye,-4) would return goo or $left(goodbye,-5) would return go
-----------------------
$right(text,number)
-----------
Description: Returns number right characters of text
Need to know: If Number is a negative value, it returns all but number characters.
Examples: $right(goodbye,3) would return bye and $right(goodbye,-4) would return bye also.
-----------
$mid(text,String,Number)
-----------
Description: Returns Number characters starting at position String in text
Need to know: If N is zero it returns the number of characters from the string to the end of line.
Examples: $mid(goodbye,1,4) would return good and $mid(goodbye,5,4) would return bye, $mid(goodbye,0,4) would return good also.
---------------------------
$len(text)
------
Description: Returns the length of text.
Need to know: Can also use variables where text is.
Examples: $len(Hello) returns 5 $len(ByeBye) Would of course return 6
-------------------------
$lower(text) and $upper(text)
--------
Description: $lower Returns text in lowercase, $upper returns Text in uppercase
Need to know: Nothing.
Examples: $lower(HELLO GUYS) would return hello guys. $upper(hello guys) would return HELLO GUYS
--------------------
$remove(string,substring)
---------
Description: Removes any occurrence of substring in string
Need to know: You can also specify multiple remove parameters
Examples: $remove(Owwl,l) would return owl, you can also do something like this $remove(Wolfns,n,s) would return Wolf
----------------------
$replace(string,substring,newstring) && $replacecs For case sensitive version.
-------
Description: Replaces any occurence of substring in string with new string.
Need to know: You can also specify multiple replace parameters
Examples: $replace(Hotter,H,P) or something like $replace(Dog,d,c,o,a,g,t) would return cat instead of dog.
------------------------
$asctime
---------
Description: Returns the time and date in text format 
Need to know: You can specify both the N and format parameters, or only one or the other.
Example: $asctime would return Wed Mar 07 20:54:59 2007