Prinz
Senior Member
Germany
1522 Posts |
Posted - 24 Apr 2010 : 18:36:51
|
Since i have corrected many Script i put a List of Functions together which would help in future.
---------------------
#COMPUTELINE#
Makes a SUM or SUBTRACTION to the LINE variable.
Syntax:
#COMPUTELINE#=±number
Parameters:
± Required. Is the operation you want make. number Required. Is the Value to SUM or SUBTRACT
Examples:
1. #COMPUTELINE#=+2 Goes 2 lines down in the html
2. #COMPUTELINE#=-3 Goes 3 lines up in the html
---------------------
#LOADWEBSITELINE#
Loads a value in the Line Variable.
Syntax:
#LOADWEBSITELINE#=#??#
Parameters:
#??# Required. The Variable where the value is stored.
Examples:
#PUT#=10#03# #LOADWEBSITELINE#=#03#
Go to the 10 Line in the Html
---------------------
#CHECKEPISODEEXIST#
Checks if the Episode is already in the Database.
Syntax:
#CHECKEPISODEEXIST#=#?1#,#?2#,#?3#
Parameters:
#?1# Required. The Variable where the RESULT is stored. 0 or Episode's ID in database. #?2# Required. The Variable where the SEASONNUMBER is stored. #?3# Required. The Variable where the EPISODENUMBER is stored.
Examples:
#PUT#=2#04# #PUT#=5#05# #CHECKEPISODEEXIST#=#03#,#04#,#05# This example it checks if the 5. Episode in the 2. Season exists and returns the result on the #03# variable.
---------------------
#FINDINVAR#
Search for a string in a Variable.
Syntax:
#FINDINVAR#=#?1#,#?2#,#?3# #ONERROR#=*options*
Parameters:
#?1# Required. Variable in which to search. #?2# Required. Variable with the text to find in another Variable. #?3# Required. 0 if not found and 1 if found. #ONERROR#=*options* Optional. In the options you can specify what Engine must do in case of ERROR of the Function : STOP -> Will terminate the BLOCK where is the Function. ASK -> Will show you the message of error and the script-line where is located OK -> Will ignore the error and go on with executing the others functions
Examples:
#PUT#=This is the Text to search in.#02# #PUT#=to#03# #FIND#=#02#,#03##12##ONERROR#=*OK*
Searches for the "to" in the Variable #02# and sets the Variable #12# anything but 0 ---------------------
#REPLACEINVAR#
Search for a string inside a variable and replace it with another string.
Syntax:
#FINDINVAR#=#?1#,#?2#,#?3# #ONERROR#=*options*
Parameters:
#?1# Required. Variable with the text to find in another Variable. #?2# Required. Variable with the text to replace the text #?2# with. #?3# Required. Variable in which to search and replace. #ONERROR#=*options* Optional. In the options you can specify what Engine must do in case of ERROR of the Function : STOP -> Will terminate the BLOCK where is the Function. ASK -> Will show you the message of error and the script-line where is located OK -> Will ignore the error and go on with executing the others functions
Examples:
#PUT#=Text#02# #PUT#=Data#03# #PUT#=This is the Text to search in.#04# #FIND#=#02#,#03##04##ONERROR#=*OK*
Searches for the "to" in the Variable #04# and replaces the Text "Text" from the Variable #02# with the Text "Data" from the Variable #03#
---------------------
#GETMOVIEVAR#=#23#=#MOVIEID#
Get Web-ID of the Movie/TV-Show. Used in the #RIGHTPAGEFOUND# Block. The %MOVIEID% gets the Database ID not the Web-ID of the movie which is useless in the Script. |
|