Jump to content

Module:Sandbox/BigGreenCahuna

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by BigGreenCahuna (talk | contribs) at 05:23, 11 August 2014. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = {}
 
function p.hello( frame )
	
	local args=frame.args
	
	output =  "Bob "
	local testcheck = 0   local testcheck2 = 0  local testcheck3 = 0   local testcheck4 = 0
	
    -- check  1
	if args[1] == "1" 	then 
		output =  output.."Test1 "  
		testcheck = 1
    else  
		output =  output..args[1]		 testcheck = -1
	end
	
	-- check  2
	if args[2] == "5" 	then 
		output = output.."Test2 "  
		testcheck2 = 1
    else  
		output = output..args[2]	 testcheck2 = -1
	end	
	
    return output   
end  
 
return p