{"name":"step","title":"step","type":"command","url":"https://community.bistudio.com/wiki/step","revid":369298,"updated":"2024-09-03T18:42:52Z","groups":["Program Flow"],"status":"ok","games":{"arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.00","arma3_since":"0.50","description":"Optional step value. A countdown can be made with a negative value. If not set, the default step is 1.","syntaxes":[{"syntax":"for step stepSize","params":[{"name":"for","type":"For Type","type_expr":"For Type"},{"name":"stepSize","type":"Number","type_expr":"Number"}],"returns":{"type":"For Type","type_expr":"For Type"},"form":"binary","left":{"text":"for"},"right":{"text":"stepSize"}}],"examples":[{"text":"```sqf\nfor \"_i\" from 20 to 10 step -2 do\n{\n    // ...\n};\n```","code":["for \"_i\" from 20 to 10 step -2 do\n{\n\t// ...\n};"]}],"see_also":["Control Structures"]}