Table Of Contents

Compare Two Paths (G Dataflow)

Version:
    Last Modified: April 3, 2017

    Compares the relationship between two file paths.

    connector_pane_image
    datatype_icon

    path 1

    First path you specify.

    datatype_icon

    path 2

    Second path you specify.

    datatype_icon

    error in

    Error conditions that occur before this node runs.

    The node responds to this input according to standard error behavior.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

    Default: No error

    datatype_icon

    relative path from 1 to 2

    Relative path you have to take on disk to get from path 1 to path 2.

    datatype_icon

    common path

    Part of the absolute path that path 1 shares with path 2.

    datatype_icon

    path 2 relative to path 1?

    A Boolean value that indicates the relationship between the two input paths.

    True The two paths are identical, or the first path is a containing folder of the second path.
    False The first path is not a containing folder of the second path.
    datatype_icon

    error out

    Error information.

    The node produces this output according to standard error behavior.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.
    Input or Output Value
    path 1 C:\folder\sub\test.txt
    path 2 C:\folder\sub2\dir\test2.doc
    relative path from 1 to 2 ..\..\sub2\dir\test2.doc
    common path C:\folder
    path 2 relative to path 1? False
    Input or Output Value
    path 1 C:\folder\sub
    path 2 C:\folder\sub\dir\test2.doc
    relative path from 1 to 2 dir\test2.doc
    common path C:\folder\sub
    path 2 relative to path 1? True

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics