MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / EvaluateLoopUntil

Method EvaluateLoopUntil

source/script.cpp:10835–10850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10833
10834
10835bool Line::EvaluateLoopUntil(ResultType &aResult)
10836{
10837 g_script.mCurrLine = this; // For error-reporting purposes.
10838 if (g->ListLinesIsEnabled)
10839 LOG_LINE(this);
10840#ifdef CONFIG_DEBUGGER
10841 // Let the debugger break at or step onto UNTIL.
10842 if (g_Debugger.IsConnected())
10843 g_Debugger.PreExecLine(this);
10844#endif
10845 aResult = ExpandArgs();
10846 if (aResult != OK)
10847 return true; // i.e. if it fails, break the loop.
10848 aResult = LOOP_BREAK; // Break out of any recursive PerformLoopXxx() calls.
10849 return ResultToBOOL(ARG1); // See PerformLoopWhile() above for comments about this line.
10850}
10851
10852
10853

Callers

nothing calls this directly

Calls 3

ResultToBOOLFunction · 0.85
IsConnectedMethod · 0.80
PreExecLineMethod · 0.80

Tested by

no test coverage detected