Modar internal command:


 getVar

To get input from user (stdin) and assign the input to a variable given, for interactive purpose. There is a function form “gettext()”, which can be used in assignment statement directory.

  • Syntax
    getvar <varialbe name> [default=<>] [msg=<>] [min=<>] [max=<>]

  • Examples

    #to get a target temperature from user, with default value 300

    #              and strict range [50,1000]

    Getvar ttar default=300 min=50 max=1000 msg=”Please tell target T”


  • Function form examples

    #to get a target temperature from user, with default value 300

    #              and strict range [50,1000]

    TRef=gettext(300,50,1000)

     

    #to get a file name from user

    Filename=gettext()

     

    #to get a method type from user, with default type ¡°MC¡±

    Method=gettext(“MC”)



 

 

 

 

 

 

 

 

  Contact us

  Phone: 400-660-8656
  Email: support@beemd.org

 

       我们长期和北京市计算中心合作提供计算培训服务,承接托管计算业务,如有需求请随时联系我们。