Skip to main content

FV Decipher Support

All the topics, resources needed for FV Decipher.

FocusVision Knowledge Base

Marker Tag: Set a Survey Marker

1:  Overview

The <marker> element is used to set markers in a survey. For example:

<marker name="my_marker" cond="Q1.r1" />

The code above is equivalent to:

if Q1.r1:

In contrast to the <exec> block approach, the <marker> element can be easily identified (but not edited) within the survey editor.

You can check if a marker exists by using the hasMarker(...) function.
e.g. hasMarker('my_marker')

Learn more

2:  Attributes

The <marker> element has access to the following attributes:

Attribute Type Description
name string The name of the marker being set
cond string The condition for marker being set

2.1:  name - Set the Name of the Marker

The name attribute controls the name of the marker being set.

<marker name="Wave_3" />

<block label="Wave_3_Section" cond="hasMarker('Wave_3')>

2.2:  cond - Set the Condition to Apply the Marker

The cond attribute controls the logic in setting the marker. You can specify any Python expression here and if it evaluates to True, the marker will be set.

<marker name="Quarter_4" cond=" ge 10"/>

3:  What's Next?

Learn more about Adding Condition/Skip Logic and the Exec Tag.