I created my enum
:
#property script_show_inputs
enum MYENUM
{
first,
second
};
input MYENUM response;
int OnInit()
{
if (response == first)
{
printf("first");
}
if (response == second)
{
printf("second");
}
}
It looks working before init, you can click on drop down and choose value. But when OnInit()
starts it always default "first" value with no matter which was chosen.
How to use enum
with input?