Firetron’s LogRule

1 88 Views No Comments 1 month ago
  • Logs a rule (horizontal line).

    HaasScript Code
    --  ============================================================================
    --    Firetron's LogRule
    --
    --    Logs a rule (horizontal line).
    --
    --    Discord:  @FiretronP75
    --    BTC Tips: 14WLDZsrhshcP6qvBarKW8ABACv3iUXEro
    --    ETH Tips: 0xfaaac99fbf11f8f4abc4b3bf079cb2c7a43b5f87
    --  ============================================================================
    
    --  ========================================================
    --    Definition
    --  ========================================================
    
    DefineCommand('LogRule', 'Logs a rule (horizontal line).')
    
    --  ========================================================
    --    Parameters
    --  ========================================================
    
    local characters = DefineParameter(StringType, 'characters', 'The character(s) to repeat to form the rule.', false, '-')
    local repitition = DefineParameter(NumberType, 'repitition', 'How many times to repeat the character(s).',   false, 100)
    
    --  ========================================================
    --    Output
    --  ========================================================
    
    local rule = characters.rep(characters, repitition)
    
    Log(rule)
    
    DefineOutput(VoidType)
Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free