I have a function that has these arguments:
<cffunction name="Agregar" access="public" returntype="any">
<cfargument name="id_examen" type="numeric" required="yes" />
<cfargument name="id_tema" type="numeric" required="yes" />
<cfargument name="id_tipopregunta" type="numeric" required="yes" />
<cfargument name="id_dificultad" type="numeric" required="yes" />
<cfargument name="opciones_arreglo" type="array" required="no" />
I'm trying to use cfif to say what to do when the argument "opciones_arreglo" is not received. I used a function called isDefined
, but it doesn't work. I just want to make the code run the else section, but I got this complaint about something that is obvious:
Element OPCIONES_ARREGLO is undefined in ARGUMENTS.
The error occurred in C:\www\htdocs\RHRR\componentes\bro\preguntas.cfc: line 24
22 : <cfdump var="#Arguments#">
23 :
24 : **<cfif IsDefined(Arguments.opciones_arreglo)>**
25 :
26 : <cfinvoke method = "RSAgregar"