Ok, I guess you already know how to send them vertically, so at each "step" you need to check whether you are in the air or on a solid, and if you are in the air then set gravity, gravity is cumulative each step, it just keeps increasing, so after a given amount of time the gravity pulling down becomes more than the upwards(vertical speed) force. So now you will continually fall increasing in speed, so you have to create the opposite action for when you contact the ground. the "ELSE" so that when you contact a solid it will stop gravity (by setting it to 0 at direction 270). and also you have to stop your vertical speed by setting it to 0 also, so that after you hit a solid they both are reset to be used again.
(Note: anything directly after a "check" (the little octagons in actions) is the only thing that the check applies to, if you want more action to be included in the condition of the "check" then enclose them in a start and end block.)
Here is a step to make the character fall but stop at solids:
tried to put notes about what is taking place kind of.
If you copy this exactly it won't funtion due to some notes being after the checks and not specific actions, or group of actions.
Hope this helps.