Hi,
I want to know the existence of a plugin. If the plugin doesnt exist, I should create it. My initial thought was by checking
|
Quellcode
|
1
|
if(get(plugin[someplugin]) == null, addplugin(someplugin), removeplugin(someplugin));
|
but I cant get it to validate. I even tried get(plugin[someplugin].count) == null
Any clues? Atm I resolved it by creating a dummy plugin, so I don't get an error, but it's not the neatest way ofcourse.