Combine these two if's into one if (ignoreRow != -1 && ignoreRow == i) { continue; } if…
- User
Combine these two if's into one
if (ignoreRow != -1 && ignoreRow == i) { continue; }
if (GetValue(i, 0).Cmp(name) == 0) { row = i; break; } - Assistant
if ((ignoreRow != -1 && ignoreRow == i) || GetValue(i, 0).Cmp(name) == 0) { if (ignoreRow != -1 && ignoreRow == i) { continue; } else { row = i; break; } }
- User
no, make only one if that check both conditions at once, ignoring the continue
- Assistant
if ((ignoreRow != -1 && ignoreRow == i) || GetValue(i, 0).Cmp(name) == 0) { if (ignoreRow == -1 || ignoreRow != i) { row = i; break; } }
- User
no, you are still making two if's. I want you to make only one if
- Assistant
Apologies for the misunderstanding. Here's the combined if statement that checks both conditions at once:
if ((ignoreRow != -1 && ignoreRow == i && GetValue(i, 0).Cmp(name) != 0)) { row = i; break; }
- User
give me a sample attribution Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0) to an icon, to use in an open source application
- Assistant
Here's a sample attribution you can use for an icon with the Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0) license:
[Icon Name] by [Author Name], licensed under CC BY-NC-ND 4.0.
Make sure to replace [Icon Name] with the actual name of the icon and [Author Name] with the name of the author or creator of the icon.