In the third chapter of this course on learning how to program from scratch with Xojo we explained what conditional evaluation is, how it is used and what it is used for.
Life is full of confrontations and decision making; and in fact these are also the tools that will allow our programs to execute a piece of code or another depending on whether, for example, the user has performed a certain action or selection from a series of available options.
Comparisons are also the mechanism that helps us know if a value has reached a certain threshold so that our programs react accordingly.
Once we have seen what variables are and how to use them, in this chapter it will be of great help to work with them in combination with the instructions and operators of the Xojo programming language dedicated to comparing, and also to creating structures whose code to be executed. only in case a previous comparison is true or not.
Likewise, these comparison structures are also the ones that will allow us to (optionally) execute an alternate block of code in case the comparison is not satisfied.
So, during this video I am convinced that you will understand with total clarity how they work (and also how to use in your developments), the instructions:
- If then
- If ... Then ... Otherwise
- Select case
As usual, I encourage you to put into practice what you have learned in this and in the previous chapters of the course, in order to become more familiar and also become more fluent in managing the IDE, by accessing and using the online help accessible from the IDE itself. and also the use of UI controls available in the Xojo library.
Remember that you can always download Xojo from: www.xojo.com/download, as well as express your concerns in the Xojo Forum in Spanish (https://forum.xojo.com/c/international/espanol/31).
If you have any questions about how to do something about Xojo, don't hesitate to leave a comment!