String containing value --> compute into new variable

Moderators: statman, Analyst Techy, andris, Fierce, GerineL, Smash

Posts: 1
Joined: Fri May 05, 2017 1:06 pm

String containing value --> compute into new variable

Postby mmhj » Fri May 05, 2017 1:17 pm

Hi all,

In my export, there is a variable that has values such as 2/4/5 or 1/3/5.
I'm looking for a syntax that looks if a certain case CONTAINS a number and then gives another variable a '1' as a value.
The attachment shows how: if 'Behoeften_13' contains '3', so '@13_3' is given a '1'.

I've done it manually now but this is not doable for the entire file. I've looked for syntaxes like the 'transform into new variable' ones but they don't seem to cover the 'contain' bit (they only do =, >, <, etc).


You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: No registered users and 1 guest