I was recently teaching an Intro to APEX course and the students had some questions about what to put in the Expression 1 text area for different conditions and validations based on the Type selected. If you’re new to APEX the various options can be confusing.

To help clear things up I have covered various APEX conditions and validations along with code that demonstrates how APEX processes the value in Expression 1 based on the given Type. You can view the all the examples in my blog post here: http://www.talkapex.com/2012/03/how-apex-processes-various-conditions.html