Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

finish BOOLEAN() #1964

Open
GillesDuvert opened this issue Jan 12, 2025 · 0 comments
Open

finish BOOLEAN() #1964

GillesDuvert opened this issue Jan 12, 2025 · 0 comments

Comments

@GillesDuvert
Copy link
Contributor

BOOLEAN() is just a .pro at the moment.
To enable correct support boolean should be a C++ variant of DByteGDL ansd proper actions be taken at various places.

a = [0.0, 1.0, 0.0, 3.0]
b = BOOLEAN(a) ; --> works: b=[0,1,0,1]
c = boolean("no") ; -->works: c=1 ; not 0 as you may think --- booleans are not really that smart. 
b[2] = "yes" ; equal to "true"
HELP, b ; does not work: should be [0,1,1,1] , GDL gives [0,1,121,1] 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant