I have a struct that I check for the existence of a key. I then need to test whether the value for that key is a string. I didn't spot anything in the Adobe CF docs like an isString()
function (similar to isNumeric()
).
Is there a good way other than using the seemingly broader isSimpleValue()
?
You can see the current (JVM) type of a variable by doing <cfdump var=#getMetadata(var)# /> or simply by accessing getMetadata(var). getName() .
ColdFusion treats each character in the delimiters parameter as a separate delimiter. Therefore, if the parameter is ",+" ColdFusion will break the list at either a comma or a plus sign. If you specify a multiCharacterDelimiter parameter, all list elements must be separated by exactly the specified characters.
ColdFusion already supports string concatenation using “&” operator. ColdFusion 8 introduces a new string operator “&=” for compound concatenation.
Cystic fibrosis (CF) is an inherited disorder that causes severe damage to the lungs, digestive system and other organs in the body. Cystic fibrosis affects the cells that produce mucus, sweat and digestive juices. These secreted fluids are normally thin and slippery.
The good way will depend on your context. ColdFusion does not use explicit types for variables.
'123456' can be a string and '2016-05-18 13:08:00' can be a string too, you have a good question but testing the value depends on what you're trying to do and what happens next with it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With