Why wont /testfor work?

I've been trying to do /testfor @a [r=5]
for something, but it wont work! It just gives me an error message like "Data tag" something something "Unexpected "[" as first char." I've done the command before and it works, so why won't it work now??
Best Answer
Once again, you have put a space in between the @a
and the radius selector.
Correct command: /testfor @a[r=5]
A redstone comparator coming out of the block will emit a signal when this is true.
Pictures about "Why wont /testfor work?"



Student's t-test
More answers regarding why wont /testfor work?
Answer 2
You put a space in between @a
and [r=5]
.
The correct command is this:
/testfor @a[r=5]
The "/"
is optional.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Yaroslav Shuraev, Henri Mathieu-Saint-Laurent, cottonbro, Karolina Grabowska