“Love and Commandments,” New Era, Jan. 2019, 12.
The word if introduces a conditional proposition. An if-statement sets conditions; a then-statement follows, representing a consequence. “If a, then b” basically means, “Supposing that a is true, b will also be true.”
The Savior declared:
To love God = the first great commandment
See Matthew 22:37–38.
To keep the commandments means to know them, to observe them, to do them, and to cherish them. There are many promises linked to keeping the Lord’s commandments. Here are just a few:
“[A] blessed and happy state” (Mosiah 2:41).
“Length of days, and long life, and peace” (Proverbs 3:1–2).
“Peace in this world” (Doctrine and Covenants 59:23).
“The Holy Ghost” (Acts 5:32).
“[To] abide in [the Savior’s] love” (John 15:10).
“Eternal life” (Doctrine and Covenants 14:7).
“[To] receive of [the Father’s] fulness” (Doctrine and Covenants 93:20).