QUICK ANSWER
"Si" is a form of "si", a conjunction which is often translated as "if". "Lo compro" is a phrase which is often translated as "I buy it". Learn more about the difference between "lo compro" and "si" below.
si(
see
)A conjunction is a word that connects words, phrases, clauses, or sentences (e.g., The cat and the dog slept.).
A masculine noun is used with masculine articles and adjectives (e.g., el hombre guapo, el sol amarillo).