You can remember the meaning of 如果 with this easy mnemonic:
Sometimes people regret their lack of risk planning. If (如) the fruit (果) farmers had built some protections, they could have saved their fruits from the recent storm.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.