function SomeFunction takes integer my_int returns boolean
local boolean b = true
local unit some_name = GetTriggerUnit()
local integer i
set i = my_int //The function has taken my_int as an argument, look in the function decleration
//In this case, my_int is 1 since SomeOtherFunction (below) passed on 1 to this function
return b //the funcion wanted to return a boolean, so here we do it
endfunction
function SomeOtherFunction takes nothing returns nothing
call SomeFunction(1)
endfunction
//In general you type "local [type] [name] = [value]" where "= [value]" is optional