The last statement takes precedence over previous statements.
In doubt, check your klippy.log file. There you will find the entire config as Klipper “sees” it.
If you do not like the way your config is organized, you can also go to the klippy.log file and copy the entire config as shown in there to your printer.cfg file. Then you will have only one file with all relevant content.