Engram conditions only if not

I would like to create a little mod with different skill trees. To achive this i would make 3 Engrams for the skill trees where the player can choose only one of them. So i want a engram only to be availible if another engram is not used. How can i make something like this?