| 860 | } |
| 861 | |
| 862 | static GameValue StringThen(const GameState* state, GameValuePar oper1, GameValuePar oper2) |
| 863 | { |
| 864 | bool test = oper1; |
| 865 | if (test) |
| 866 | { |
| 867 | GameVarSpace local(state->GetContext()); |
| 868 | state->BeginContext(&local); |
| 869 | RString expression = oper2; |
| 870 | GameValue ret = state->EvaluateMultiple(expression); |
| 871 | state->EndContext(); |
| 872 | return ret; |
| 873 | } |
| 874 | return NOTHING; |
| 875 | } |
| 876 | |
| 877 | // if (cond) exitWith { code } — evaluates code when cond is true, stores the |
| 878 | // value in tls_exitWithValue, and signals EvalBreak to stop further statement |
nothing calls this directly
no test coverage detected