I'm trying to loop over rows in a column, and output a table which contains only rows which meet my criteria. For instance, I want to loop over values in a column and output only those rows which are equal to a certain criteria. In my example, I have a lot of rows which has blanks or the character "?". I want to filter these out and retain the rest of the values
Is there a string comparator node? Or Im complicating things and there is a filter node?
I'm trying to loop over rows in a column, and output a table which contains only rows which meet my criteria. For instance, I want to loop over values in a column and output only those rows which are equal to a certain criteria. I want to filter these out and retain the rest of the values..i have written code for that is
int m=1;
// expression start
public void snippet() throws TypeException, ColumnException, Abort {
// Enter your code here:
for(int i=1; i<=51; i++)
{
for(int j=2; j<=52; j++){
if (c_Startzelle(i).equals(c_Startzelle(j)) && c_Zielzelle(i).equals(c_Zielzelle(j)) && c_Wochentag(i)==c_Wochentag(j) && abs(c_UhrzeitBeginndesWeges(i)-c_UhrzeitBeginndesWeges(j))<100 && abs(c_UhrzeitEndedesWeges(I)-c_UhrzeitEndedesWeges(j)<100)) {
I am beginner having not enough Idea what to do...Starzelle(i) and StartZelle(j) are in differend rows but in same columns and they are strings ...same with others in rows in columns ...Can you suggest me simple code ...