Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
simcaq-node
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simcaq
simcaq-node
Commits
09cab629
Commit
09cab629
authored
2 years ago
by
Pietro Cavassin
Browse files
Options
Downloads
Patches
Plain Diff
change from if to switch
parent
48428386
No related branches found
No related tags found
2 merge requests
!329
Update enrollment - new filters
,
!309
Merge new updates into master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/libs/convert/booleanVariable.js
+8
-6
8 additions, 6 deletions
src/libs/convert/booleanVariable.js
with
8 additions
and
6 deletions
src/libs/convert/booleanVariable.js
+
8
−
6
View file @
09cab629
...
@@ -19,10 +19,12 @@ along with simcaq-node. If not, see <https://www.gnu.org/licenses/>.
...
@@ -19,10 +19,12 @@ along with simcaq-node. If not, see <https://www.gnu.org/licenses/>.
*/
*/
module
.
exports
=
function
booleanVariable
(
id
)
{
module
.
exports
=
function
booleanVariable
(
id
)
{
if
(
id
==
null
||
id
==
"
null
"
)
switch
(
id
){
return
'
Não Declarado
'
;
case
true
:
else
if
(
id
==
false
)
return
'
Sim
'
;
return
'
Não
'
;
case
false
:
else
if
(
id
==
true
)
return
'
Não
'
;
return
'
Sim
'
;
default
:
return
'
Não Declarado
'
;
}
};
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment