Simple macro need help

Hey guys! first time here so i hope im posting on the right forum.
Im trying to make a simple macro but i guess im simple minded cause i cant get it done.
3 spells macro. I want it to be priority based macro
Shield slam whenever is available
if Shield slam and Revenge isnt available
Thunder clap.

well thats it. ty in advance :slight_smile: