Display a variable only if the right Enum is selected?

Hey, would it be possible to make a it so that a specific variable will only appear in the inspector if the right Enum is selected. To visualize it here is what I thought it would look like:

public class Item_Database : MonoBehaviour 
{
	public Items[] items;
	public enum ItemType {Edible, Drinkable, Weapon}
	
	[System.Serializable]
	public class Items {
		public string name;
		public ItemType itemType;
		if(ItemType == Edible) {
			public string howMuchRestore;
		}
	}

}

Thanks in advance!

Yes this is possible with a custom inspector
http://unity3d.com/learn/tutorials/modules/intermediate/editor/building-custom-inspector

    [CustomEditor( typeof(YourBehaviour) )]
    public class InspectorYourBehaviour : Editor
    {
public override void OnInspectorGUI()
{
    YourBehaviour yourBehaviour = (YourBehaviour)target;
    if(yourBehaviour.enum == value1)
    {
    //do something for value1
    }
}
    }