Mad Libs: Difference between revisions
→{{header|Batch File}}
Simple9371 (talk | contribs) (Add Batch File Solution) |
Simple9371 (talk | contribs) |
||
Line 404:
=={{header|Batch File}}==
This implementation takes a file from command line. This will not validate the input
<pre>Enter a value for [Sample Variable]? <blabla> </pre>
Then, the term 'blabla' will interpreted as blank...
<br>
<lang dos>::Save this as MADLIBS.BAT
Line 469 ⟶ 470:
set "chk_brack=!input:>=!"
set "chk_brack=!chk_brack:<=!"
set "chk_brack=!chk_brack:%%=!"
for /l %%. in (1,1,!cnt!) do (
if "!chk_brack!"=="!input!" (
|