- Posts: 25
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
/^(1:[0-2][0-9]|0:[0-5][0-9])$/
/^(2:[0-2][0-9]|[0-1]:[0-5][0-9])$/
if(q1 == 'foo', regexMatch('/^(1:[0-2][0-9]|0:[0-5][0-9])$/', q1Regex), regexMatch('/^(2:[0-2][0-9]|[0-1]:[0-5][0-9])$/', q1Regex))
Must match format and be less than {if(q1 == 'foo', '1', '2')}:30
if ( Q00021 == '1' OR Q00023 == '1' OR Q00024 == '1'); then
regexMatch('/^(1:[0-2][0-9]|1:[3][0])$/', Q00032
elif ( Q00022 == '2' OR Q00025 == '3' OR Q00026 == '2'); then
regexMatch('/^(2:[0-2][0-9]|3:[3][0])$/', Q00032
else
regexMatch('/^(0:[0-2][0-9])$/', Q00032
fi
if(Q00021 == '1' OR Q00023 == '1' OR Q00024 == '1', regexMatch('/^(1:[0-2][0-9]|1:[3][0])$/', Q00032), if(Q00022 == '2' OR Q00025 == '3' OR Q00026 == '2', regexMatch('/^(2:[0-2][0-9]|3:[3][0])$/', Q00032), regexMatch('/^(0:[0-2][0-9])$/', Q00032) ) )
if(Q00021 == '1' OR Q00023 == '1' OR Q00024 == '1', regexMatch('/^(1:[0-2][0-9]|1:[3][0])$/', Q00032), if(Q00021 == '3' OR Q00022 == '1' OR Q00023 == '3' OR Q00023 == '3' OR Q00023 == '5' OR Q00023 == '6' OR Q00024 == '2' OR Q00025 == '1', regexMatch('/^(1:[3-5][0-9]|2:[0][0])$/', Q00032), if(Q00021 == '4' OR Q00021 == '7' OR Q00021 == '9' OR Q00024 == '3' OR Q00024 == '4' OR Q00024 == '5', regexMatch('/^(1:[3-5][0-9]|2:[0-2][0-9]|2:[3][0])$/', Q00032), if(Q00022 == '3' OR Q00022 == '4' OR Q00022 == '7' OR Q00025 == '2' OR Q00025 == '3' OR Q00025 == '4', regexMatch('/^(1:[3-5][0-9]|2:[0-5][0-9]|3:[0][0])$/', Q00032), regexMatch('/^([0-9]:[0-5][0-9])$/', Q00032) ) ) ) )
if(Q00021 == '1', regexMatch('/^(1:[0-2][0-9]|1:[3][0])$/', Q00032), regexMatch('/^([0-9]:[0-5][0-9])$/', Q00032)
Use QCODE.NAOK :limes4LN wrote: I think I found a problem : Q00021, Q00022, Q00023 are not displayed at the same time, only one of them are displayed according to previous answers, the rest of them are hidden. Looks like this If statement is bogus when one of the question is the condition is hidden, it that possible?