asputil.py 227 B

123456789101112
  1. """A utility module for ASP (Active Server Pages on MS Internet Info Server.
  2. Contains:
  3. iif -- A utility function to avoid using "if" statements in ASP <% tags
  4. """
  5. def iif(cond, t, f):
  6. if cond:
  7. return t
  8. else:
  9. return f