English
Opportunities and suggestions

wish: function @empty()

 

KHR
Hello

my Desire for future Profan-versions is the function:

@empty()

I form tappt im dunkeln me in the momentum of course How follows to:
CompileMarkSeparation
def @empty(1) @len(@trim$(@$(1)))
cls
print @empty("1234")
print @empty("   ")
print @empty("")/pre>

and I then verkehrte Logik:

erfüllt is 0=false

not erfüllt is: >0 = true

hope but too The function universeller, z.B.

that @empty() too with Zahlenwerten The zero are, true zurückgibt.
 
Gruß
Karl-Heinz
WIN XP home/Pro / XPROFAN 11 / P2CPP
ATMEL + BASCOM Fan
12/03/08  
 



functions
CompileMarkSeparation
def @empty(1) (@len(@trim$(@$(1)))<1)
>
or
CompileMarkSeparation
def @empty(1) if(@len(@trim$(@$(1))),0,1)
>
or.
CompileMarkSeparation
def @empty(1) if(@len(@trim$(@$(1))),if(val(@$(1)),0,1),1)
>
?

latter checks however not isNum, where it checks, whether val()=0 is, but vlt. is the you too not at all important.
 
12/03/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.024 Views

Untitledvor 0 min.

Themeninformationen

this Topic has 2 subscriber:

iF (1x)
KHR (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie