Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Display text block based on age filter

  • keunes
  • keunes's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 11 months ago #134931 by keunes
I'm confused, and annoyed (because I don't understand and the Expression Manager wiki isn't basic enough for me) :P

I would simply like to display a block of text in a group, if the two above questions are answered.
The two questions are: What's your age (DEM_AGE) and What's the stage of life you're in (DEM_LIFE)

I gave the following Relevance Equation for the text block:
[tt]DEM_AGE=>18 and DEM_AGE<=28 and !is_empty(DEM_LIFE)[/tt]

As you can get from above, I only want to display the block to ppl 18,19,...,27,28 years old. It doesn't work; it doesn't display the block.
If I only use [tt]!is_empty(DEM_LIFE)[/tt] it does work, so I guess the 'age' part of my relevance equation is wrong.

(PS. Survey sample files (LSS) don't help me 'cause my university system gives an error when trying to import them)
The topic has been locked.
  • keunes
  • keunes's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 11 months ago #134934 by keunes
Replied by keunes on topic Display text block based on age filter
Found my mistake :)

[tt]DEM_AGE=>18 and DEM_AGE<=28 and !is_empty(DEM_LIFE)[/tt]
should be
[tt]DEM_AGE>=18 and DEM_AGE<=28 and !is_empty(DEM_LIFE)[/tt]
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose