Skip to content

Commit 1f2f771

Browse files
committed
minor loop change
1 parent 797095b commit 1f2f771

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

taskt/Core/Automation/Commands/BeginLoopCommand.cs

+11-11
Original file line numberDiff line numberDiff line change
@@ -854,43 +854,43 @@ where rw.Field<string>("Parameter Name") == "Operand"
854854
where rw.Field<string>("Parameter Name") == "Value2"
855855
select rw.Field<string>("Parameter Value")).FirstOrDefault());
856856

857-
return "While (" + value1 + " " + operand + " " + value2 + ")";
857+
return "Loop While (" + value1 + " " + operand + " " + value2 + ")";
858858

859859
case "Variable Has Value":
860860
string variableName = ((from rw in v_LoopActionParameterTable.AsEnumerable()
861861
where rw.Field<string>("Parameter Name") == "Variable Name"
862862
select rw.Field<string>("Parameter Value")).FirstOrDefault());
863863

864-
return "While (Variable " + variableName + " Has Value)";
864+
return "Loop While (Variable " + variableName + " Has Value)";
865865
case "Variable Is Numeric":
866866
string varName = ((from rw in v_LoopActionParameterTable.AsEnumerable()
867867
where rw.Field<string>("Parameter Name") == "Variable Name"
868868
select rw.Field<string>("Parameter Value")).FirstOrDefault());
869869

870-
return "While (Variable " + varName + " Is Numeric)";
870+
return "Loop While (Variable " + varName + " Is Numeric)";
871871

872872
case "Error Occured":
873873

874874
string lineNumber = ((from rw in v_LoopActionParameterTable.AsEnumerable()
875875
where rw.Field<string>("Parameter Name") == "Line Number"
876876
select rw.Field<string>("Parameter Value")).FirstOrDefault());
877877

878-
return "While (Error Occured on Line Number " + lineNumber + ")";
878+
return "Loop While (Error Occured on Line Number " + lineNumber + ")";
879879
case "Error Did Not Occur":
880880

881881
string lineNum = ((from rw in v_LoopActionParameterTable.AsEnumerable()
882882
where rw.Field<string>("Parameter Name") == "Line Number"
883883
select rw.Field<string>("Parameter Value")).FirstOrDefault());
884884

885-
return "While (Error Did Not Occur on Line Number " + lineNum + ")";
885+
return "Loop While (Error Did Not Occur on Line Number " + lineNum + ")";
886886
case "Window Name Exists":
887887
case "Active Window Name Is":
888888

889889
string windowName = ((from rw in v_LoopActionParameterTable.AsEnumerable()
890890
where rw.Field<string>("Parameter Name") == "Window Name"
891891
select rw.Field<string>("Parameter Value")).FirstOrDefault());
892892

893-
return "While " + v_LoopActionType + " [Name: " + windowName + "]";
893+
return "Loop While " + v_LoopActionType + " [Name: " + windowName + "]";
894894
case "File Exists":
895895

896896
string filePath = ((from rw in v_LoopActionParameterTable.AsEnumerable()
@@ -902,7 +902,7 @@ where rw.Field<string>("Parameter Name") == "True When"
902902
select rw.Field<string>("Parameter Value")).FirstOrDefault());
903903

904904

905-
return "While " + v_LoopActionType + " [File: " + filePath + "]";
905+
return "Loop While " + v_LoopActionType + " [File: " + filePath + "]";
906906

907907
case "Folder Exists":
908908

@@ -915,7 +915,7 @@ where rw.Field<string>("Parameter Name") == "True When"
915915
select rw.Field<string>("Parameter Value")).FirstOrDefault());
916916

917917

918-
return "While " + v_LoopActionType + " [Folder: " + folderPath + "]";
918+
return "Loop While " + v_LoopActionType + " [Folder: " + folderPath + "]";
919919

920920
case "Web Element Exists":
921921

@@ -929,7 +929,7 @@ where rw.Field<string>("Parameter Name") == "Element Search Method"
929929
select rw.Field<string>("Parameter Value")).FirstOrDefault());
930930

931931

932-
return "While Web Element Exists [" + searchMethod + ": " + parameterName + "]";
932+
return "Loop While Web Element Exists [" + searchMethod + ": " + parameterName + "]";
933933

934934
case "GUI Element Exists":
935935

@@ -945,12 +945,12 @@ where rw.Field<string>("Parameter Name") == "Element Search Parameter"
945945

946946

947947

948-
return "While GUI Element Exists [Find " + guiSearch + " Element In " + guiWindowName + "]";
948+
return "Loop While GUI Element Exists [Find " + guiSearch + " Element In " + guiWindowName + "]";
949949

950950

951951
default:
952952

953-
return "While .... ";
953+
return "Loop While .... ";
954954
}
955955

956956
}

0 commit comments

Comments
 (0)