Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- newcommand{VariableList}{VariableOne,VariableTwo}
- newcommand{VariableOneSubOne}{SomeValueOne}
- newcommand{VariableOneSubTwo}{SomeOtherValueOne}
- newififVariableOneCondOne
- VariableOneCondOnetrue
- newcommand{VariableTwoSubOne}{SomeValueTwo}
- newcommand{VariableTwoSubTwo}{SomeOtherValueTwo}
- newififVariableTwoCondOne
- VariableTwoCondOnefalse
- foreach n in VariableList{
- Here is some text with inputnum{n}{SubOne} and inputnum{n}{SubTwo}.
- }
- newcommand{inputnum}[2]{expandaftercsname #1#2endcsname}
- newcommand{inputcondnum}[2]{expandaftercsname if#1#2endcsname}
- inputcondnum{n}{CondOne}
- ifVariableOneCondOne
Add Comment
Please, Sign In to add comment