Bottom toggle =؟slider 0 ,1?

Hi, I’m looking for a code or … that does the bottom toggle and is true in a fraction of a second. Be false and be controlled with sliders 0 and 1


bottom toggle.gh (6.8 KB)

//ExternalTimer
private void RunScript(ref object A)
{
  b = !b;
  A = b;
}
bool b;
//InternalTimer
private void RunScript(bool run, int interval, ref object A)
{
  A = b;
  if(!run && interval > 10) return;
  b = !b;
  UpdateComponent(interval);
}
bool b;
void UpdateComponent(int interval)
{
  GrasshopperDocument.ScheduleSolution(interval, doc => 
  Component.ExpireSolution(false));
}

Boolean.gh (11.1 KB)

thanks… :clap: