Hello Ady,
This can be accomplished with a pair of states and the '>back' operator:
sma = AddState(sma, 'Name', 'WaitForNoLick',...
'Timer', S.GUI.WaitForNoLick,...
'StateChangeConditions', {'AnalogIn1_1', 'ResetTimer', 'Tup', 'Stimulus'},...
'OutputActions', {});
sma = AddState(sma, 'Name', 'ResetTimer',...
'Timer', 0,...
'StateChangeConditions', {'Tup', '>back'},...
'OutputActions', {});
On AnalogIn1_1, the state will immediately change to 'ResetTimer', and then since the state timer is 0, back to 'WaitForNoLick' after 100 microseconds.