SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
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)
    Total Downloaded
    0

    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)
    Total Downloaded
    0

    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)
    Total Downloaded
    0

    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
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 09:25 AM.

Copyright BetaSoft Inc.