Announcement

Collapse
No announcement yet.

efsInternal not returning boolean

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • efsInternal not returning boolean

    Test(): a = -785 b = -808 c = 1 d = false e = 1 Vol = 14
    Test(): a = -785 b = -809 c = 1 d = false e = 1 Vol = 14
    Caller(): a = -785 b = -809 c = 1 d = null e = 1
    Test(): a = -785 b = -810 c = 1 d = false e = 1 Vol = 14
    Caller(): a = -785 b = -810 c = 1 d = null e = 1
    Test(): a = -785 b = -811 c = 1 d = false e = 1 Vol = 15
    Test(): a = -785 b = -812 c = 1 d = false e = 1 Vol = 15
    Caller(): a = -785 b = -812 c = 1 d = null e = 1

    A slightly modified version of the code in my previous post about missing NEWBARs produced the above output.
    The change to the test prog was to return a "false" value as another member of the array.
    See that the caller receives a null instead of a false.
    A bug?
    PHP Code:
        var false;
        var 
    1;
        
    debugPrint("Test():   "   "a = " " b = " b  " c = " c  " d = " d  " e = " " Vol = " volume() + "\n");
        return new Array(
    a,b,c,d,e); 
    PHP Code:
        debugPrint("Caller(): a = " getSeries(ms,0).getValue(0) + " b = " getSeries(ms,1).getValue(0
                          + 
    " c = " getSeries(ms,2).getValue(0) + " d = " getSeries(ms,3).getValue(0
                          + 
    " e = " getSeries(ms,4).getValue(0) + "\n"); 

  • #2
    Re: efsInternal not returning boolean

    Dave180
    efsInternal() and efsExternal() only return values that are numbers
    Alex


    Originally posted by Dave180

    A slightly modified version of the code in my previous post about missing NEWBARs produced the above output.
    The change to the test prog was to return a "false" value as another member of the array.
    See that the caller receives a null instead of a false.
    A bug?
    PHP Code:
        var false;
        var 
    1;
        
    debugPrint("Test():   "   "a = " " b = " b  " c = " c  " d = " d  " e = " " Vol = " volume() + "\n");
        return new Array(
    a,b,c,d,e); 
    PHP Code:
        debugPrint("Caller(): a = " getSeries(ms,0).getValue(0) + " b = " getSeries(ms,1).getValue(0
                          + 
    " c = " getSeries(ms,2).getValue(0) + " d = " getSeries(ms,3).getValue(0
                          + 
    " e = " getSeries(ms,4).getValue(0) + "\n"); 

    Comment


    • #3
      Thanks.
      Perhaps eSignal could make the documentation clearer. I see nothing that makes it obvious that restriction exists.

      Comment

      Working...
      X