I know this is rather elementary for the bulk of you, but its not soaking into my brain.
I have a form with a field that the person has an option to fill out or not. I want to pass the value they input and if they don't input something I want to be able to assign a value to pass.
Something like if the variable is empty then assign the word "Anonymous" and pass that value, otherwise pass.
For example
If variable name "name" is not filled out by the user then
assign "Anonymous" to the variable name,
else if the variable name "name" was filled out by the user then pass that.
I have to do this kind of programming once every 10 years, so its certainly not second nature to me. Thank you for any resources you can suggest.
I have a form with a field that the person has an option to fill out or not. I want to pass the value they input and if they don't input something I want to be able to assign a value to pass.
Something like if the variable is empty then assign the word "Anonymous" and pass that value, otherwise pass.
For example
If variable name "name" is not filled out by the user then
assign "Anonymous" to the variable name,
else if the variable name "name" was filled out by the user then pass that.
I have to do this kind of programming once every 10 years, so its certainly not second nature to me. Thank you for any resources you can suggest.