Hi,

I would like my field "confident in pct tree cover in cropland?", which is a boolean, to be false/"no" if the response to "confident in pct area in cropland?" (also a boolean) is false/"no" because if we are not sure of the cropland area, we cannot be sure that we have the right percent tree cover in cropland.

I cannot make it work... In the default value for "confident in pct tree cover in cropland?", I am using lulc[lulc='high_forest']/lulc_cfdce = 1 for "applied when" but I am unable to get the boolean value (in expression? in constant value?) to be set at false then.

Thanks VERY MUCH for any help!

Best,

Florence

asked 07 Sep, 15:03

flandsberg's gravatar image

flandsberg
51115
accept rate: 0%


When using the validation expressions try to compare the ouput of logic expressions with the value false() and true() instead of 0 and 1, that should work. So the expression would be:

lulc[lulc='high_forest']/lulc_cfdce = true()
permanent link

answered 07 Sep, 15:14

Open%20Foris's gravatar image

Open Foris ♦♦
2905612
accept rate: 6%

Not sure how to make sure it comes to you, so here it is also :-)...

Thanks for the first answer! Now, I want to assign a default value of "false" to "high_forest_pct_treecover_cfdce" when "lulc[lulc='high_forest']/lulc_cfdce = false ()".

How can I assign "false" to "high_forest_pct_treecover_cfdce"?

Many, many thanks!!!

(10 Sep, 11:21) flandsberg flandsberg's gravatar image

Fantastic, it works in terms of the relevance!!

But now, I want to assign a default value of "false" to "high_forest_pct_treecover_cfdce" when "lulc[lulc='high_forest']/lulc_cfdce = false ()".

How can I assign "false" to "high_forest_pct_treecover_cfdce"?

MMMMMMMMMMMMMMMMany thanks!!!

permanent link

answered 10 Sep, 11:08

flandsberg's gravatar image

flandsberg
51115
accept rate: 0%

Default values for boolean variables and simply FALSE or TRUE (in capital letters).

permanent link

answered 12 Sep, 09:44

LauriV's gravatar image

LauriV
1912210
accept rate: 12%

Hi,

Thanks for helping me out.

If I put as default value "FALSE" in "constant value" and "lulc[lulc='high_forest']/lulc_cfdce = false ()" in "Apply when", it does not work... Meaning, the default value of high_forest_pct_treecover_cfdce is not becoming "false" when lulc_cfdce for high_forest is "false" (note that lulc_cfdce is in a table).

Where is my error?

Thanks,

Florence

(13 Sep, 12:43) flandsberg flandsberg's gravatar image

Dear Florence,

sorry I gave you premature information. This default value for boolean attribute works in Collect, not yet in Collect Earth. That issue will be taken into account when developing future version of CE. Thanks, Lauri

permanent link

answered 17 Sep, 14:52

LauriV's gravatar image

LauriV
1912210
accept rate: 12%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×165

question asked: 07 Sep, 15:03

question was seen: 168 times

last updated: 17 Sep, 14:52