I have some pretty good programming knowledge, however i am trying to run a script that waits for redstone input from a certain location. I'm not 100% sure of the syntax for os.pullEvent() either.

Here's my Code:

while true do
if redstone.getInput("right") == true then
  --Run Counter
  shell.run("counter")
  end
end

Now, You would think I could figure this out by myself, but I'm severly stumped.. anyone?

FIXED! Here is the fixed code below:

while true do
if os.pullEvent() == "redstone" then
	if redstone.getInput("right") == true then
	  --Run Counter
	  shell.run("counter")
	end
  end
end