Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have variable vTotalCount which will be assigned through input box. I want to check if variable has value then set to variable value but if varibale doesnot hold value then it should be set to default value to 24.
=IF(len(TRIM(vTotalCount))>0 ,vTotalCount,24) - This expression working as expected.
But when I use $ expansion , I am getting an error as below-
=IF(len(TRIM($(vTotalCount)))>0 ,vTotalCount,0)
Can someone please help me in this?
If it is working without dollar sign expansion, why do you want to use dollar sign expansion?
If it is working without dollar sign expansion, why do you want to use dollar sign expansion?
That seems very logical to me.
Imagine that vTotalCount either contains an empty string or a string composed of whitespace characters.
Then
Sunny's question still stands. But if you really want to keep the $-sign expansion, then put the $(...)-expression between single quotes. Trim() only operates on strings anyway...
[Edit] Sorry, kept finding spelling errors...
Sunny - You are correct, as it is working without $ expansion why to unnecessary complicate. Thanks for replying.