This exercise shows how to use macro variables and logic as well as the MessageDialog macro command.
The EES file solution is:
https://fchartsoftware.com//assets/downloads/eesfiles/usingmacrosexercise2.zip
00:00 Using Macros Exercise 2
00:20 Problem Statement
02:05 Creating the EES program
07:00 Creating the Macro