@neqna function
Posted: Tue Aug 19, 2014 7:51 am
In this code:
I would expect both test messages to display, but only "Test 2" displays. Why?
I am using Eviews 8 Enterprise edition, July 29 2014 built.
In fact, the "Command and Programming Reference" document on page 71 says @neqna("", "def") returns a 1, but the following code returns a 0:
scalar aTemp = @neqna("", "def")
Code: Select all
%Str1 = "abc"
%Str2 = ""
if @neqna(%Str1, %Str2) then
@uiprompt("Test 1")
endif
if not(@eqna(%Str1, %Str2)) then
@uiprompt("Test 2")
endif
I am using Eviews 8 Enterprise edition, July 29 2014 built.
In fact, the "Command and Programming Reference" document on page 71 says @neqna("", "def") returns a 1, but the following code returns a 0:
scalar aTemp = @neqna("", "def")