static S ai_ifAndInput(S rule, S input) { L tok = javaTokDroppingBracketsC_unquote(rule); new Matches m; if (simpleStarMatchOnCTokensIC("if * and input * then say *", tok, m)) { if (!match($2, input)) null; T3 t = ai_tripelize(ai_bigXToDollarX($1)); printStruct(+t); S x = random(ai_texts(t)); if (x == null) null; ret $3 + " " + x; } null; }