Sign InSign Up

Rocketbot Forum

Rocketbot Forum Logo Rocketbot Forum Logo

Rocketbot Forum Navigation

  • Academy Rocketbot
  • Tutorials
  • Documentación
Search
Ask A Question

Mobile menu

Close
  • Home
  • Popular
  • Categories
  • Tags
  • Questions
    • New Questions
    • Most voted
    • Most visited
    • Most Responded
  • Academy Rocketbot
  • Tutorials
  • Documentación
Home/ Questions/Q 375
Next
Answered

Rocketbot Forum Latest Questions

Fernando
  • 0
  • 0
Fernando
Asked: September 16, 20202020-09-16T20:21:40+00:00 2020-09-16T20:21:40+00:00In: Ejecución

Invalid Syntax en un IF

  • 0
  • 0

Hola! Estoy tratando de utilizar el comando IF con una variable pero me tira el siguiente error ¿Que puede ser?

ifinvalid syntaxsintaxis
1
  • 1 1 Answer
  • 7k Views
  • 0 Followers
  • 0
Share
  • Facebook

    1 Answer

    • Voted
    • Oldest
    • Recent
    1. A16
      Best Answer
      A16
      2020-09-16T20:27:58+00:00Added an answer on September 16, 2020 at 8:27 pm
      This answer was edited.

      Si tu variable es un string, entonces debes colocarlo entre comillas así:

      «{if_archivo_zcl_selected}» = » «

      Si tiene saltos de línea, entonces debes usar triple comillas «»»{if_archivo_zcl_selected}»»»

      Esto es porque en los bloque de lógica, al igual que en asignar variable, se ejecuta código python, por lo tanto, al reemplazar la variable con el contenido que tiene, como el contenido de las variables no tienen comillas, python pensará que es una variable interna y fallará

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Leave an answer
    Cancel reply

    You must login to add an answer.


    Forgot Password?

    Need An Account, Sign Up Here

    Sidebar

    Ask A Question

    Stats

    • Questions : 1k
    • Answers : 2k
    • Posts : 0
    • Comments : 0
    • Best Answers : 163
    • Users : 5k
    • Popular
    • Comments
    • Tags

    Related Questions

      • Answers: 4

      Google chrome bloquea la descarga de varios archivos debido a ...

      • Answer: 1

      Error Status

      • Answers: 0

      Restaurar Paginas Chrome

      • Answers: 2

      Robot enciclado, pero no ejecuta ningun comando dentro del ciclo

      • Answer: 1

      Error al iniciar rocketbot

    Users

    Explore

    • Home
    • Popular
    • Categories
    • Tags
    • Questions
      • New Questions
      • Most voted
      • Most visited
      • Most Responded

    Footer

    rocketbot white

    Rocketbot SpA | Todos los derechos reservados 2018 - 2020

    © 2020 Discy. All Rights Reserved
    With Love by 2code.

    en_US
    es_ES en_US

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.