Calculate if true

Hi All

I am wandering if this is at all possible. Been searching but unable to
find anything relevant.

I want to do a calculation if the previous relevance is true.

I have a note "bp1_b" which is relevant if answer to previous question
"bp1" is above 140 and is expresses and working as ${bp1} > 140

I would like to flag this result by using a calculation so it is silently
written to the submitted data if the note "bp1_b" is true

confusing myself now...

Bash

··· -- Bashir Jahed - Director The OSi LAB (PTY) Ltd www.osilab.net | 083 414 0453 | bashir@osilab.net

I believe calculations like these are best done post-processing unless it
is relevant to the rest of the questionnaire. Anyway, you can use a *
calculate* type field, say bp1b and assign the calculation like if(bp1 >
140, 1, 0)
or if(bp1 > 140, 'True', 'False').

This calculate field is hidden from the user.

Nik

··· On Tuesday, June 4, 2013, Bashir Jahed wrote:

Hi All

I am wandering if this is at all possible. Been searching but unable to
find anything relevant.

I want to do a calculation if the previous relevance is true.

I have a note "bp1_b" which is relevant if answer to previous question
"bp1" is above 140 and is expresses and working as ${bp1} > 140

I would like to flag this result by using a calculation so it is silently
written to the submitted data if the note "bp1_b" is true

confusing myself now...

Bash

--
Bashir Jahed - Director
The OSi LAB (PTY) Ltd
www.osilab.net | 083 414 0453 | bashir@osilab.net <javascript:_e({},
'cvml', 'bashir@osilab.net');>

--

Post: opendatakit@googlegroups.com <javascript:_e({}, 'cvml',
'opendatakit@googlegroups.com');>
Unsubscribe: opendatakit+unsubscribe@googlegroups.com <javascript:_e({},
'cvml', 'opendatakit%2Bunsubscribe@googlegroups.com');>
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com <javascript:_e({},
'cvml', 'opendatakit%2Bunsubscribe@googlegroups.com');>.
For more options, visit https://groups.google.com/groups/opt_out.

Hi Nik

Thanks will give this a try. I am aware this is hidden from the user and
the data will be used later upon analysis

Will feedback on results.

Bash

··· On Tue, Jun 4, 2013 at 3:10 PM, ゴー・ニコライ wrote:

I believe calculations like these are best done post-processing unless it
is relevant to the rest of the questionnaire. Anyway, you can use a *
calculate* type field, say bp1b and assign the calculation like *if(bp1

140, 1, 0)* or if(bp1 > 140, 'True', 'False').

This calculate field is hidden from the user.

Nik

On Tuesday, June 4, 2013, Bashir Jahed wrote:

Hi All

I am wandering if this is at all possible. Been searching but unable to
find anything relevant.

I want to do a calculation if the previous relevance is true.

I have a note "bp1_b" which is relevant if answer to previous question
"bp1" is above 140 and is expresses and working as ${bp1} > 140

I would like to flag this result by using a calculation so it is silently
written to the submitted data if the note "bp1_b" is true

confusing myself now...

Bash

--
Bashir Jahed - Director
The OSi LAB (PTY) Ltd
www.osilab.net | 083 414 0453 | bashir@osilab.net

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Bashir Jahed - Director
The OSi LAB (PTY) Ltd
www.osilab.net | 083 414 0453 | bashir@osilab.net

Hi

I have tried the following calculation but the result always returns false.
Any tips here:

if(bp1 > 140, 'True', 'False')

··· On Tue, Jun 4, 2013 at 3:10 PM, ゴー・ニコライ wrote:

I believe calculations like these are best done post-processing unless it
is relevant to the rest of the questionnaire. Anyway, you can use a *
calculate* type field, say bp1b and assign the calculation like *if(bp1

140, 1, 0)* or if(bp1 > 140, 'True', 'False').

This calculate field is hidden from the user.

Nik

On Tuesday, June 4, 2013, Bashir Jahed wrote:

Hi All

I am wandering if this is at all possible. Been searching but unable to
find anything relevant.

I want to do a calculation if the previous relevance is true.

I have a note "bp1_b" which is relevant if answer to previous question
"bp1" is above 140 and is expresses and working as ${bp1} > 140

I would like to flag this result by using a calculation so it is silently
written to the submitted data if the note "bp1_b" is true

confusing myself now...

Bash

--
Bashir Jahed - Director
The OSi LAB (PTY) Ltd
www.osilab.net | 083 414 0453 | bashir@osilab.net

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Bashir Jahed - Director
The OSi LAB (PTY) Ltd
www.osilab.net | 083 414 0453 | bashir@osilab.net

Bashir,

If you're using XLSForm, your variable references need to be of the form
${bp1}. That may be your problem with the "if" expression.

Best,

Chris

··· On Wed, Jun 5, 2013 at 9:17 AM, Bashir Jahed wrote:

Hi

I have tried the following calculation but the result always returns
false. Any tips here:

if(bp1 > 140, 'True', 'False')

On Tue, Jun 4, 2013 at 3:10 PM, ゴー・ニコライ nikolai.go@gmail.com wrote:

I believe calculations like these are best done post-processing unless it
is relevant to the rest of the questionnaire. Anyway, you can use a *
calculate* type field, say bp1b and assign the calculation like *if(bp1

140, 1, 0)* or if(bp1 > 140, 'True', 'False').

This calculate field is hidden from the user.

Nik

On Tuesday, June 4, 2013, Bashir Jahed wrote:

Hi All

I am wandering if this is at all possible. Been searching but unable to
find anything relevant.

I want to do a calculation if the previous relevance is true.

I have a note "bp1_b" which is relevant if answer to previous question
"bp1" is above 140 and is expresses and working as ${bp1} > 140

I would like to flag this result by using a calculation so it is
silently written to the submitted data if the note "bp1_b" is true

confusing myself now...

Bash

--
Bashir Jahed - Director
The OSi LAB (PTY) Ltd
www.osilab.net | 083 414 0453 | bashir@osilab.net

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Bashir Jahed - Director
The OSi LAB (PTY) Ltd
www.osilab.net | 083 414 0453 | bashir@osilab.net

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.