Problem with search form code

Problem with search form code

Hi I'm new in programming and really need help with my code that I modified from tutorial link here:
https://www.zoho.eu/creator/help/application/search-interface.html

What I need to have in my application is search interface where I can find records by user input and show them on page.  I modify code form tutorial to my app where all data are stored in Item_register and I want to looking for records that have same value as input in fields Model_Name,  EAN_CODE_Value and Item_category.

Problem: 
When I try to past that code into html its return "null", when I tried to past it into blank html in page editor and press save it return : 
Error at line number : 9
Improper Statement
Error might be due to missing ';' at end of the line or incomplete expression

CODE:

ItemModel = Item_register [(((Model_Name.contains(input.searchParam) || EAN_CODE_Value(input.searchParam)) || Item_category(input.searchParam))] range from (stIndex + 1) to endIndex;  
srchCount = Item_register[(((Model_Name.contains(input.searchParam) || EAN_CODE_Value(input.searchParam)) || Item_category(input.searchParam))].count(); 
if (srchCount > 0) { div elName='zc-component' formLinkName='Single_Lin' params='zc_Header=false&zc_BdrClr=white&zc_LblClr=FFFFFF&srchParam=<%=searchParam%> };
"for each ItemPos in ItemModel" 
Extn. no.: <%=thisapp.replNullValue((""+ItemPos.Extension) ;

Please tell me what is wrong in this code and how to fix it, or if anyone would like to help me in priv contact me