{"name":"to","title":"to","type":"command","url":"https://community.bistudio.com/wiki/to","revid":311163,"updated":"2022-05-12T09:48:15Z","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":"Continue sequence of for construct. It sets the end value of the index variable.","syntaxes":[{"syntax":"forType to b","params":[{"name":"forType","type":"For Type","type_expr":"For Type"},{"name":"b","type":"Number","type_expr":"Number"}],"returns":{"type":"For Type","type_expr":"For Type"},"form":"binary","left":{"text":"forType"},"right":{"text":"b"}}],"examples":[{"text":"```sqf\nfor \"_i\" from 10 to 20 do\n{\n    hint str _i; // will hint from 10 to 20, spaced by 1 second\n    sleep 1;\n};\n```","code":["for \"_i\" from 10 to 20 do\n{\n\thint str _i; // will hint from 10 to 20, spaced by 1 second\n\tsleep 1;\n};"]}],"see_also":["Control Structures","for","from","step"]}