We can use CTRL + G to show/hide vegetation in Eden Editor but there is no scripting equivalent.
Suggestion:
<NUMBER> = do3DENAction "ToggleVegetation"; //Switching the current state <NUMBER> = get3DENActionState "ToggleVegeation"; //To check state of the action