Uso de booleanos

Viewing 2 posts - 1 through 2 (of 2 total)
  • #248687

    Buenas tardes.

    Tanto en indicadores como en screeners, defino variables como booleanos, sin embargo me da la sensación de que no funcionan.

    Por ejemplo, defino la variable “isconfirmed” como booleano, y marco el check (true)

    Al usar el siguiente código, muchas veces se me va por el else (hay veces que sí me funciona). ¿Es así como se definiría una condición if para un booleano?:

    if isconfirmed then

    c1 = 1

    else

    c1 = 0

    endif

    ¡Gracias!

    #248690

    Funciona perfectamente (prueba el archivo ITF donde ya se ha añadido la variable):

    Pruebe también el segundo indicador:

     

    1 user thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login