Using Mathcad Prime for Matrix Row Substitution Based on Matching Criteria Hello Everyone, I am attempting to write a 'RowSwapper' function in Prime 8. Essentially, I have a matrix 'A' in which I need to replace certain rows that are present in another matrix, 'B'. The function should take the following arguments: RowSwapper(A, B, "label"). It should generate a new matrix, called 'A_Swapped', where rows are swapped only in instances where items have the same ID (column 2) and where label="LoadCase4" (column 5). However, the function I've developed isn't ideal because it relies on matrix 'A' having a well-defined order, and that matrix 'B' maintains the same order per unique ID as they initially appear in Matrix 'A'. Furthermore, it only includes load cases equivalent to "LoadCase4". Additionally, it's time-consuming in terms of computation. Screen shot of Matrix A and B:Desired Output Please note that I don't currently have access to Prime 9. Feel free to send me screenshots of the Prime 9 solution along with the file, which I can op