N'th: Difference between revisions
→{{header|Batch File}}: Use if...... else if
(→{{header|PowerShell}}: Fixed 11th, 112th and 13th) |
(→{{header|Batch File}}: Use if...... else if) |
||
Line 927:
for /l %%n in (%~1,1,%~2) do (
set curr_num=%%n
if !curr_num:~-2!==11 (set "out=%%nth"
) else if !curr_num:~-
) else if !curr_num:~-
) else if !curr_num:~-1!==
) else if !curr_num:~-
) else if !curr_num:~-
set "range_output=!range_output! !out!"
)
|