Greg's Blog

helping me remember what I figure out

Is That Argument Defined

| Comments

I am getting closer and closer to completing my first Mach-ii application and I just thought I’d note down one other thing I figured out, namely how to check whether an argument exists or not. Initially I tried using StructKeyExists() function with no success. So I decided to just <cfdump> request.event to see what other methods where available (other than getArg()) and sure enough you can do a event.isArgDefined() to check for the existence of an argument.