Hi all,
I have an item which is turned into alphanumerical in order to use it as check-box for multiple answers. The value set is ranged from A-V , where V is Other,Specify. I want to activate the next field which is the Specify field only if V is chosen in the check-box. I have not yet found the correct way to do it. For numerical fields (where V is 98) the code:
preproc
if Q405<>98 then noinput; endif;
works fine, but I cannot do the same for the check-box. I tried:
preproc
if Q405<>"V" then noinput; endif;
but it does not seem to do the trick. Any suggestions?
Thanks in advance Stavros
Logic with Checkboxes
-
Gregory Martin
- Posts: 1947
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Logic with Checkboxes
For alpha fields, you will have to use the pos or poschar functions. For example:
if pos("V",Q405) = 0 then // V was not found in the string
noinput;
endif;
noinput;
endif;