namespace WorkflowActivity.Scripting.DeterminesBuilderRangeFolder { using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Text; using LFSO90Lib; /// /// Provides one or more methods that can be run when the workflow scripting activity is performed. /// public class DeterminesBuilderRangeFolder : SDKScriptClass90 { // Execute the script below when this activity is executed. // The 'MsgBox' function is available for design-time testing. protected override void Execute() { int input = Convert.ToInt32(this.TokenReplace("%(ForEachValue_Current Value)")); if (00000001<=input && input <=25002000) { this.SetToken("Range1", "00000001-25002000"); } else if (25002001<=input && input <=28001000) { this.SetToken("Range1", "25002001-28001000"); } else if (28001001<=input && input <=51001000) { this.SetToken("Range1", "28001001-51001000"); } else if (51001001<=input && input <=88003000) { this.SetToken("Range1", "51001001-88003000"); } else if (88003001<=input && input <=88007000) { this.SetToken("Range1", "88003001-88007000"); } else if (88007001<=input && input <=88010000) { this.SetToken("Range1", "88007001-88010000"); } else if (88010001<=input && input <=88012000) { this.SetToken("Range1", "88010001-88012000"); } else if (88012001<=input && input <=88015000) { this.SetToken("Range1", "88012001-88015000"); } else if (88015001<=input && input <=88018000) { this.SetToken("Range1", "88015001-88018000"); } else if (88018001<=input && input <=88021000) { this.SetToken("Range1", "88018001-88021000"); } else if (88021001<=input && input <=88024000) { this.SetToken("Range1", "88021001-88024000"); } else if (88024001<=input && input <=88027000) { this.SetToken("Range1", "88024001-88027000"); } else if (88027001<=input && input <=88030000) { this.SetToken("Range1", "88027001-88030000"); } else if (88030001<=input && input <=88033000) { this.SetToken("Range1", "88030001-88033000"); } else if (88033001<=input && input <=88036000) { this.SetToken("Range1", "88033001-88036000"); } else if (88036001<=input && input <=88039000) { this.SetToken("Range1", "88036001-88039000"); } else if (88039001<=input && input <=88042000) { this.SetToken("Range1", "88039001-88042000"); } else if (88042001<=input && input <=88045000) { this.SetToken("Range1", "88042001-88045000"); } else if (88045001<=input && input <=88048000) { this.SetToken("Range1", "88045001-88048000"); } else if (88048001<=input && input <=88051000) { this.SetToken("Range1", "88048001-88051000"); } else if (88051001<=input && input <=88054000) { this.SetToken("Range1", "88051001-88054000"); } else if (88054001<=input && input <=99999999) { this.SetToken("Range1", "88054001-99999999"); } else { } } } }