SPONSORS:






User Tag List

Results 1 to 3 of 3

Thread: New to Silk

  1. #1
    Member
    Join Date
    Jan 2001
    Location
    San Jose
    Posts
    51
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    New to Silk

    Hello everyone,
    I am new to Silk, and so if my question seems too simplistic for this forum, I appologize. Here it is:
    I know there is a min function that returns the smaller of two numbers. How do you return the smallest number in a list of more than two?

  2. #2
    Member
    Join Date
    Nov 2000
    Location
    Newport News, VA U.S.
    Posts
    30
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: New to Silk

    I don't know of any function in SilkTest that returns a smallest number of a list.... but if the list is not too long, how about something like this?

    // ***************************
    LIST OF INTEGER liList = {} //the list of numbers you have
    INTEGER iSmallest = 1000 // a number bigger than anything in the list.

    for each iNumber in liList
    if iNumber < iSmallest
    iSmallest = iNumber
    // ***************************

  3. #3
    Member
    Join Date
    Jan 2001
    Location
    San Jose
    Posts
    51
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: New to Silk

    Thank you, YoungMeeK. My list is not too long,this will certainly do the trick

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 07:10 AM.

Copyright BetaSoft Inc.