I dont know how to connect a soldered button

Sry if i posted it on the wrong forum, could a mod (if its in the wrong forum) please move it to the right forum. Anyway i dont know where i have to connect the 2 wires on the arduino, so that it works. My board is an Arduino Uno smd edition

(mod edit)

Connect one lead to GND.
Connect the other lead to an input pin, and in setup() do "pinMode (<your pin number/name here>, INPUT_PULLUP);"

When the switch is closed, the pin will read LOW.

Thank you so much. But what do you mean with "if the switch is closed", you mean if i press the button its condition is low ? so will that code work ?

A switch can be "normally open" ("NO") or "normally closed" ("NC").

I don't know which yours is.
It is very easy to find out.

(Please don't PM questions that are best left to the forum)

Most push buttons are NO, but not all.

The idea with INPUT_PULLUP mode is that internally the pin has a resistor to the supply, so it reads HIGH unless its shorted to ground externally.