<div dir="ltr">You can set parameters with keyval or xkeyval packages. Is there any package that you can do the same with commands. So for example, you define a command, say, \direction which has two values RTL and LTR and is used in the following way:<br>
<br>\direction=RTL or<br><br>\direction=LTR<br><br>Is it possible to implement these kind of control sequences?<br clear="all"><br>-- <br><div dir="ltr">I prefer the most bloodcurdling death to living with humility. The only country I am faithful to, is IRAN. Do not denigrate my last moments...<br>
</div><br>
</div>