Hi Borna,
Use the Enumerate LayerFunction node to find the layer functions.
To create walls with multiple layer and different functions, follow this example: