This will help you to get started with the walls selection:
Getting and setting parameters can be done like so: