【代码】使用 else if 发表于 2020-04-12 更新于 2023-06-04 阅读次数: 前言关卡攻略 源代码12345678for i in 1 ... 2 { moveForward() if isOnClosedSwitch { toggleSwitch() } else if isOnGem { collectGem() }}