getodk / getodk/xforms-spec

Add if-empty() as an alias of once()

Open
#130 4 comments 1 reaction 0 assignees View on GitHub
good first issue needs discussion
Dominant language
CSS
Stars
34
Forks
28
Avg merge
27m
Merged PRs (30d)
1

Description

From https://forum.opendatakit.org/t/copy-a-field-into-another/6808/

> I wonder if using once() would meet your requirements. The name of this function is not very descriptive as it works like if_empty() and therefore wouldn't override a user-entered value, unless the user-entered value is empty. We should perhaps consider adding an alias for once().

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the specification entry for once() and review how function aliases are defined. Add if-empty() as its alias, ensuring the specification clearly records that both names have the same behavior; the issue names no file or test, so completion is a consistent specification update.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.