Hi,
I don't understand why you would want to do this, but...
true and false are boolean, therefore you would test without the quotation marks.
If you have a search for Paul Guerette's LockAllFields example on this forum, you will see a solution for looping though objects in a form.
Hope that helps,
Niall