So this is what I have, I have a get object that's accessing an external web page and I'd like to check the response code to display a different message.
Right now I have "On Get Complete" set to change the alterable text of my string object to the response code and then it displays that alterable text.
I'd like this to be a little more informative to the end user, however, but I can't seem to figure out how to do if statments in CF.
I'd like to do this....
Code:
if( Recieved$( "Response Code" ) == 404 ) {
set alterable string to "404 Page not Found, please contact the admin"
} else if ( Recieved$( "Response Code" ) == 404 ) {
set alterable string to "200 Status Okay, request recieved."
}
I'm a PHP developer and this is my very first attempt at anything in CF so I'm a little confused on how to write such a conditional statement in CF.
Thanks in advance for any help given!