I just got to start learning the smart contracts, and I have a beginner question.
Before coding, I am doing a top-down research. I read a lot about the if-this-than-that. However, I do not hear about the "else", that is, if the conditions are not met, is it possible to execute? For example, if some person A does not send me the right amount of money, execute the contract, otherwise, do not. Can this be done ? How about, if A does not send me the right amount money, execute some other contract that would correct an error (either subtract the money from my account or from their account, and file a report to management (lets say) )? Furthermore, can the contract be time-based? For example, if A does not send me the money on Monday, execute the contract and file a report to management.