CN115129188A - Interactive method, device and equipment based on conditional statement and storage medium - Google Patents

Interactive method, device and equipment based on conditional statement and storage medium Download PDF

Info

Publication number
CN115129188A
CN115129188A CN202210750169.3A CN202210750169A CN115129188A CN 115129188 A CN115129188 A CN 115129188A CN 202210750169 A CN202210750169 A CN 202210750169A CN 115129188 A CN115129188 A CN 115129188A
Authority
CN
China
Prior art keywords
conditional statement
node
logical relationship
target
setting area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210750169.3A
Other languages
Chinese (zh)
Inventor
李爽
畅婧文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202210750169.3A priority Critical patent/CN115129188A/en
Publication of CN115129188A publication Critical patent/CN115129188A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Abstract

The embodiment of the disclosure provides an interaction method, device, equipment and storage medium based on conditional statements. The method comprises the following steps: displaying a setting interface of the conditional statement; the setting interface comprises at least one first adding control, at least one logic relation node and at least one conditional statement setting area; receiving a first operation of a target first adding control in at least one first adding control; and responding to the first operation, displaying the added conditional statement setting area and the association relationship between the added conditional statement setting area and a first target node, wherein the first target node is a logical relationship node associated with the target first adding control. Therefore, the embodiment of the disclosure can shorten the time for the user to set the conditional statement, thereby improving the use efficiency of the user.

Description

Interaction method, device and equipment based on conditional statement and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an interaction method, an interaction device, an interaction apparatus, and a storage medium based on conditional statements.
Background
The logical Tree component (Issue Tree) is a method for analyzing existing problems and related relations thereof by using a Tree-shaped graph, which is to convert known problems which look disordered and disordered into a Tree-shaped model capable of predicting unknown examples by a certain technical means; the query condition statement may be composed of a plurality of branch clauses, and a certain logical relationship exists between the branch clauses. Thus, different query condition statements may be configured by the logical tree component.
However, in the prior art, the specific functions of the add control of the conditional statement are unclear, that is, only from the visual interface of the logical tree component, the user cannot clearly determine which add control of the conditional statement is used for adding the conditional statement of which level, and only by trying to operate, the specific functions of the add control can be determined.
Therefore, the function of adding the control to the statement in the visual interface of the logic tree component is not clear at present, so that when a user sets the conditional statement through the logic tree component, the user often needs to learn the specific function of correspondingly adding the control in advance, the time for setting the conditional statement by the user is prolonged, and the use efficiency of the user is reduced.
Disclosure of Invention
The disclosure provides an interaction method, an interaction device, an interaction equipment and a storage medium based on conditional statements, which are used for at least solving the problems that the function of statement adding controls in a visual interface of a logic tree component in the related art is not clear, so that the setting time of the conditional statements is prolonged, and the use efficiency of a user is reduced.
The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an interaction method based on conditional statements, the method including:
displaying a setting interface of the conditional statement; the setting interface comprises at least one first adding control, at least one logic relation node and at least one conditional statement setting area; at least part of the at least one logical relationship node is respectively associated with at least one conditional statement setting area, the logical relationship node with the associated conditional statement setting area is in one-to-one correspondence with the at least one first adding control, and the display position of the first adding control is associated with the display position of the logical relationship node corresponding to the first adding control through the conditional statement setting area associated with the logical relationship node corresponding to the first adding control;
receiving a first operation on a target first adding control in the at least one first adding control;
and responding to the first operation, displaying an added conditional statement setting area and an association relation between the added conditional statement setting area and a first target node, wherein the first target node is a logical relation node associated with the target first adding control.
In a possible implementation manner, the first adding control is located at the end of the last conditional statement setting area in the first target area, and the first target area includes a conditional statement setting area associated with the logical relationship node corresponding to the first adding control.
In one possible embodiment, in the setting interface, the at least one logical relationship node is divided into at least one hierarchy level;
a second adding control is also displayed below the target object, the target object is the last object in the display sequence in the objects with the same superior logical relationship node, and the object is a logical relationship node or a conditional statement setting area;
the method further comprises the following steps:
receiving a second operation on a target second adding control, wherein the target second adding control is one of the second adding controls in the setting interface;
responding to the second operation, adding a logical relationship node between a reference object and the target second adding control to serve as a second target node, wherein the reference object is an object adjacent to the target second adding control, and the second target node is the same as a superior logical relationship node of the reference object;
and displaying the incidence relation between the second target node and the upper level logical relation node to which the reference object belongs.
In one possible embodiment, the method further comprises:
receiving a third operation on the logical relationship node displayed with a preset mark, wherein the preset mark is used for identifying the logical relationship represented by the logical relationship node which can be switched;
and responding to the third operation, and switching the logical relationship represented by the logical relationship node corresponding to the third operation according to the predetermined sequence of the plurality of logical relationships.
In one possible implementation, the display style of the at least one logical relationship node when representing different logical relationships is different.
In one possible implementation, the at least one logical relationship node represents one of the following logical relationships:
logical relations and, logical relations or, a union of logical relations.
In one possible embodiment, the conditional statement setting area includes a plurality of field input boxes, and each adjacent two field input boxes are connected.
In one possible implementation manner, in the setting interface, a deletion control is respectively displayed at the tail end of each conditional statement setting area;
the method further comprises the following steps:
receiving a fourth operation on a target deleting control, wherein the target deleting control is one of deleting controls in the setting interface;
and in response to the fourth operation, deleting the conditional statement setting area associated with the target deletion control.
In a possible implementation manner, the tail ends of at least part of conditional statement setting areas in the setting interface are respectively displayed with third adding controls;
the method further comprises the following steps:
receiving a fifth operation on a target third adding control, wherein the target third adding control is one of the third adding controls in the setting interface;
in response to the fifth operation, taking a conditional statement setting area in front of the target third adding control as a first sub-area, adding a conditional statement setting area below the first sub-area as a second sub-area, and moving the target third adding control to the end of the second sub-area;
wherein the first sub-region and the second sub-region belong to the same conditional statement.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for interacting based on conditional statements, the apparatus including:
a setting interface display module configured to display a setting interface of the conditional statement; the setting interface comprises at least one first adding control, at least one logic relation node and at least one conditional statement setting area; at least part of the at least one logical relationship node is respectively associated with at least one conditional statement setting area, the logical relationship node with the associated conditional statement setting area is in one-to-one correspondence with the at least one first adding control, and the display position of the first adding control is associated with the display position of the logical relationship node corresponding to the first adding control through the conditional statement setting area associated with the logical relationship node corresponding to the first adding control;
a first receiving module configured to receive a first operation on a target first adding control in the at least one first adding control;
and the first adding module is configured to respond to the first operation and display an added conditional statement setting area and an association relation between the added conditional statement setting area and a first target node, wherein the first target node is a logical relation node associated with the target first adding control.
In a possible implementation manner, the first adding control is located at the end of the last conditional statement setting area in the first target area, and the first target area includes a conditional statement setting area associated with the logical relationship node corresponding to the first adding control.
In one possible embodiment, in the setting interface, the at least one logical relationship node is divided into at least one hierarchy level;
a second adding control is also displayed below the target object, the target object is the last object in the display sequence in the objects with the same superior logical relationship node, and the object is a logical relationship node or a conditional statement setting area;
the device further comprises:
a second receiving module configured to receive a second operation on a target second adding control, wherein the target second adding control is one of the second adding controls in the setting interface;
a second adding module configured to add a logical relationship node between a reference object and the target second adding control as a second target node in response to the second operation, where the reference object is an object adjacent to the target second adding control, and the second target node is the same as a superior logical relationship node of the reference object;
a first display module configured to display an association relationship between the second target node and an upper level logical relationship node to which the reference object belongs.
In one possible embodiment, the apparatus further comprises:
a third receiving module, configured to receive a third operation on a logical relationship node on which a preset mark is displayed, where the preset mark is used to identify that the logical relationship node can switch the represented logical relationship;
and the relation switching module is configured to respond to the third operation and switch the logical relation represented by the logical relation node corresponding to the third operation according to the predetermined sequence of the plurality of logical relations.
In one possible embodiment, the at least one logical relationship node represents a different logical relationship in a different display style.
In one possible implementation, the at least one logical relationship node represents one of the following logical relationships:
logical relations and, logical relations or, a union of logical relations.
In one possible embodiment, the conditional statement setting area includes a plurality of field input boxes, and each adjacent two field input boxes are connected.
In one possible implementation manner, in the setting interface, a deletion control is respectively displayed at the tail end of each conditional statement setting area;
the device further comprises:
a fourth receiving module, configured to receive a fourth operation on a target deletion control, where the target deletion control is one of deletion controls in the setting interface;
a deleting module configured to delete the conditional statement setting area associated with the target deletion control in response to the fourth operation.
In a possible implementation manner, the tail ends of at least part of conditional statement setting areas in the setting interface are respectively displayed with third adding controls;
the device further comprises:
a fifth receiving module, configured to receive a fifth operation on a target third addition control, where the target third addition control is one of the third addition controls in the setting interface;
a third adding module, configured to respond to the fifth operation, take a conditional statement setting area in front of the target third adding control as a first sub-area, add a conditional statement setting area below the first sub-area as a second sub-area, and move the target third adding control to the end of the second sub-area;
wherein the first sub-region and the second sub-region belong to the same conditional statement.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the conditional statement-based interaction method provided by the present disclosure.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein when the instructions of the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the conditional statement-based interaction method according to the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the conditional statement-based interaction method provided by the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the technical scheme provided by the embodiment of the disclosure can display a conditional statement setting interface, wherein the conditional statement setting interface comprises at least one first adding control, at least one logic relation node and at least one conditional statement setting area, at least part of nodes in the at least one logic relation node are respectively associated with the at least one conditional statement setting area, the logic relation nodes in the associated conditional statement setting area exist and are in one-to-one correspondence with the at least one first adding control, and the display position of the first adding control is associated with the display position of the logic relation node corresponding to the first adding control through the conditional statement setting area associated with the logic relation node corresponding to the first adding control; after receiving a first operation on a target first adding control in the at least one first adding control, in response to the first operation, adding a conditional statement setting area, and displaying the added conditional statement setting area and an association relationship between the added conditional statement setting area and a first target node, where the first target node is a logical relationship node associated with the target first adding control.
Therefore, in the embodiment of the present disclosure, for a certain logical relationship node to which a conditional statement setting area can be added, the logical relationship node can be associated with the corresponding first addition control through the display position of the conditional statement setting area associated with the logical relationship node, so that a user can clearly determine from the setting interface which logical relationship node the respective first addition control is used for adding the conditional statement setting area belonging to, thereby shortening the time for the user to set the conditional statement and improving the use efficiency of the user.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow diagram illustrating a conditional statement-based interaction method in accordance with an illustrative embodiment;
FIG. 2 is a flow diagram illustrating another conditional statement-based interaction method in accordance with an illustrative embodiment;
FIG. 3 is a schematic diagram illustrating an effect of clicking a first add control in the embodiment of the present disclosure;
FIG. 4 is one of the effect diagrams of clicking the second add control in the embodiment of the present disclosure;
FIG. 5 is a second diagram illustrating an effect of clicking a second add control in the embodiment of the present disclosure;
FIG. 6 is a schematic illustration of six displays of logical relationship nodes in an embodiment of the present disclosure;
FIG. 7 is a display diagram of a field entry box and an additional box in an embodiment of the disclosure;
FIG. 8 is a schematic diagram illustrating an effect of clicking a third add control in the embodiment of the present disclosure;
FIG. 9 is a schematic diagram illustrating a display of a constraint setting area in an embodiment of the present disclosure;
FIG. 10 is a schematic diagram illustrating a change in a logical tree component from an initial architecture to an expanded architecture in an embodiment of the present disclosure;
FIG. 11 is a schematic diagram of another variation of a logical tree component from an initial architecture to an expanded architecture in an embodiment of the present disclosure;
FIG. 12 is an interface display schematic diagram of an application of the conditional statement-based interaction method of an embodiment of the present disclosure;
FIG. 13 is a block diagram illustrating a conditional statement-based interaction apparatus in accordance with an illustrative embodiment;
FIG. 14 is a block diagram of an electronic device shown in accordance with an exemplary embodiment;
FIG. 15 is a block diagram illustrating another electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
User information (including but not limited to device information of a user, personal information of the user, and the like), related data, and the like, to which the present disclosure relates, are information authorized by the user or authorized by various parties.
Fig. 1 is a flowchart illustrating a conditional statement-based interaction method according to an exemplary embodiment, where the conditional statement-based interaction method is applicable to an electronic device, such as a mobile phone, a computer, and the like. As shown in fig. 1, the interactive method based on conditional statements includes the following steps S11 to S13.
In step S11, a setting interface of the conditional statement is displayed.
The setting interface comprises at least one first adding control, at least one logic relation node and at least one conditional statement setting area; at least part of the nodes in the at least one logic relation node are respectively associated with at least one conditional statement setting area, the logic relation nodes with the associated conditional statement setting areas are in one-to-one correspondence with the at least one first adding control, and the display positions of the first adding controls are associated with the display positions of the logic relation nodes corresponding to the first adding controls through the conditional statement setting areas associated with the logic relation nodes corresponding to the first adding controls.
Therefore, in one embodiment of the present disclosure, at least one of the logical relationship nodes included in the setting interface has at least one conditional statement setting area associated therewith (i.e., at least one conditional statement setting area exists in a subordinate object of at least one of the logical relationship nodes), and the nodes have a first addition control associated therewith. And in the at least one logical relationship node, which nodes can have the corresponding first adding control can be determined by pre-design. I.e., the initial architecture of a logic component for use by a user, may be pre-designed.
In addition, the above-mentioned conditional statement setting area is used to set the content of the conditional statement, and for example, the user can input different fields of the conditional statement and the logical relationship between the fields in the conditional statement setting area.
It should be noted here that the above logical relationship node and conditional statement setting area constitute a logical tree component, that is, the logical tree component includes at least one hierarchy, and each hierarchy includes at least one logical relationship node and/or at least one conditional statement setting area. For example, the logical tree component may include three levels, wherein the levels are gradually lowered in the order of the first level, the second level, and the third level, that is, the upper level logical relationship node of the third level belongs to the second level, and the upper level logical relationship node of the second level belongs to the first level.
For example, the logic tree component includes 5 logic relationship nodes and 5 conditional statement setting areas, where the logic relationship node D, E belongs to the third level, the upper level node of the logic relationship node D is a logic relationship node B, the upper level node of the logic relationship node E is a logic relationship node C, both the logic relationship nodes B and C belong to a logic relationship node a, the first to third conditional statement setting areas belong to a logic relationship node D, and the fourth to fifth conditional statement setting areas belong to a logic relationship node E.
In addition, the conditional statement may be a query conditional statement, for example, when data meeting a predetermined requirement needs to be queried through the query conditional statement, a user may convert the predetermined requirement into the conditional statement in advance, and then query the data meeting the conditional statement. In the embodiment of the disclosure, the logic tree component can configure different query condition statements through the logic tree component, so that the user can more conveniently query the data.
In step S12, a first operation on a target first addition control of the at least one first addition control is received.
In step S13, in response to the first operation, the added conditional statement setting area and the association relationship of the added conditional statement setting area with the first target node are displayed.
And the first target node is a logical relationship node associated with the target first adding control.
In addition, the first operation may be a click operation on the target first add control; the first adding control may be a control displayed with a first preset character (e.g., "add" or "+").
Therefore, in one embodiment of the present disclosure, the first addition control is used for adding the conditional statement setting area, and the first addition control is associated with which logical relationship node, so that the first addition control is used for adding the conditional statement setting area belonging to which logical relationship node.
As can be seen from the foregoing steps S11 to S13, in an embodiment of the present disclosure, a conditional statement setting interface can be displayed, where the conditional statement setting interface includes at least one first adding control, at least one logical relationship node, and at least one conditional statement setting area, at least some nodes in the at least one logical relationship node are respectively associated with the at least one conditional statement setting area, a logical relationship node in the associated conditional statement setting area exists, and is in one-to-one correspondence with the at least one first adding control, and a display position of the first adding control is associated with a display position of a logical relationship node corresponding to the first adding control through the conditional statement setting area associated with the logical relationship node corresponding to the first adding control; after receiving a first operation on a target first adding control in the at least one first adding control, in response to the first operation, adding a conditional statement setting area, and displaying the added conditional statement setting area and an association relationship between the added conditional statement setting area and a first target node, where the first target node is a logical relationship node associated with the target first adding control.
Therefore, in the embodiment of the present disclosure, for a certain logical relationship node to which a conditional statement setting area can be added, the logical relationship node can be associated with the corresponding first adding control through the display position of the conditional statement setting area associated with the logical relationship node, so that a user can clearly determine from the setting interface that each first adding control is respectively used for adding the conditional statement setting area belonging to which logical relationship node, thereby shortening the time for the user to set the conditional statement and improving the use efficiency of the user.
Fig. 2 is a flowchart illustrating a conditional statement-based interaction method according to an exemplary embodiment, where the conditional statement-based interaction method is applicable to an electronic device, such as a mobile phone, a computer, and the like. As shown in fig. 2, the interactive method based on conditional statements includes the following steps S21 to S23.
In step S21, a setting interface of the conditional statement is displayed.
The setting interface comprises at least one first adding control, at least one logic relation node and at least one conditional statement setting area; at least part of the at least one logic relation node is associated with at least one conditional statement setting area respectively, the logic relation nodes with the associated conditional statement setting areas are in one-to-one correspondence with the at least one first adding control, and the display positions of the first adding controls are associated with the display positions of the logic relation nodes corresponding to the first adding controls through the conditional statement setting areas associated with the logic relation nodes corresponding to the first adding controls.
Therefore, in one embodiment of the present disclosure, at least one of the logical relationship nodes included in the setting interface has at least one conditional statement setting area associated therewith (i.e., at least one conditional statement setting area exists in a subordinate object of at least one of the logical relationship nodes), and the nodes have a first addition control associated therewith. And in the at least one logical relationship node, which nodes can have the corresponding first adding control can be determined by pre-design. I.e., the initial architecture of a logic component for use by a user, may be pre-designed.
In addition, the above-mentioned conditional statement setting area is used to set the content of the conditional statement, and for example, the user can input different fields of the conditional statement and the logical relationship between the fields in the conditional statement setting area.
It should be noted here that the above logical relationship node and conditional statement setting area constitute a logical tree component, that is, the logical tree component includes at least one hierarchy, and each hierarchy includes at least one logical relationship node and/or at least one conditional statement setting area. For example, the logical tree component may include three levels, wherein the levels are gradually lowered in the order of the first level, the second level, and the third level, that is, the upper level logical relationship node of the third level belongs to the second level, and the upper level logical relationship node of the second level belongs to the first level.
For example, the logic tree component includes 5 logic relationship nodes and 5 conditional statement setting areas, where the logic relationship node D, E belongs to the third level, the upper level node of the logic relationship node D is a logic relationship node B, the upper level node of the logic relationship node E is a logic relationship node C, both the logic relationship nodes B and C belong to a logic relationship node a, the first to third conditional statement setting areas belong to a logic relationship node D, and the fourth to fifth conditional statement setting areas belong to a logic relationship node E.
The logical tree component may display each hierarchy in the setting interface in a horizontal direction, that is, the hierarchy displayed from left to right gradually decreases in level, for example, when the logical tree component includes three hierarchies, a first hierarchy, a second hierarchy and a third hierarchy are sequentially displayed from left to right. In which the relationship between one logical relationship node and its lower logical relationship node or conditional statement setting area may be represented by an indication line, for example, as shown in fig. 3, 5 conditional statement setting areas 303 associated with the logical relationship node 302 are sequentially arranged from top to bottom, and the indication line 304 passes through the logical relationship node 302 and extends from a first position to a second position, where the first position is a display position of a first conditional statement setting area among all the conditional statement setting areas associated with the logical relationship node 302, and the second position is a display position of a last conditional statement setting area among all the conditional statement setting areas associated with the logical relationship node 302.
Optionally, the first adding control is located at the end of the last conditional statement setting area in the first target area, and the first target area includes a conditional statement setting area associated with the logical relationship node corresponding to the first adding control.
That is, in an embodiment of the present disclosure, the first addition control may be displayed at the end of the last conditional statement setting area in the conditional statement setting area associated with the logical relationship node associated with the first addition control, so as to achieve the purpose of associating the display position of the first addition control with the display position of the logical relationship node associated with the first addition control through the conditional statement setting area associated with the logical relationship node associated with the first addition control.
That is, in one embodiment of the present disclosure, the first addition control of the same group of conditional statement setting area follows the same group of conditional statement setting area, thereby enabling the user to clarify the manner of addition of the conditional statement setting area.
For example, as shown in fig. 3, if the first addition control 301 is located at the end of the last of the 5 conditional statement setting areas 303 associated with the logical relationship node 302, then clicking on the first addition control 301 may increase the conditional statement setting area attributed to the logical relationship node 302.
In addition, the conditional statement may be a query conditional statement, for example, when data meeting a predetermined requirement needs to be queried through the query conditional statement, the user may convert the predetermined requirement into the conditional statement in advance, and then query the data meeting the conditional statement. In the embodiment of the disclosure, the logic tree component can configure different query condition statements through the logic tree component, so that the user can more conveniently query the data.
In step S22, a first operation on a target first addition control of the at least one first addition control is received.
In step S23, in response to the first operation, the added conditional statement setting area and the association relationship of the added conditional statement setting area with the first target node are displayed.
And the first target node is a logical relationship node associated with the target first adding control.
In addition, the first operation may be a click operation on the target first add control; the first adding control may be a control displayed with a first preset character (for example, "add" or "+").
It can be seen that, in an embodiment of the present disclosure, the first addition control is used for adding the conditional statement setting area, and the first addition control is associated with which logical relationship node, then the first addition control is used for adding the conditional statement setting area belonging to which logical relationship node.
It can be understood that, when the first adding control is located at the end of the last conditional statement setting area in the first target area, after the conditional statement setting area belonging to the logical relationship node associated with the target first adding control is added below the last conditional statement setting area in the first target area after receiving the first operation, the target first adding control may be moved down to the end of the currently added conditional statement setting area, so that the first adding control is always located at the end of the last conditional statement setting area in the conditional statement setting area where the logical relationship node associated with the first adding control currently exists, thereby facilitating the use of the user.
Furthermore, in the case where the relationship between one logical relationship node and its lower logical relationship node or the conditional statement setting area (for example, as shown in fig. 3) is represented by an indication line, if the first operation is received and the conditional statement setting area belonging to the logical relationship node associated with the target first addition control is added below the last conditional statement setting area in the first target area, the indication line passing through the logical relationship node associated with the target first addition control may be extended to the position of the added conditional statement setting area to show the association relationship between the added conditional statement setting area and the logical relationship node associated with the target first addition control (i.e., the first target node).
In step S24, a second operation on the target second add control is received.
Wherein, in the setup interface, the at least one logical relationship node is divided into at least one hierarchy; a second adding control is also displayed below the target object, the target object is the last object in the display sequence in the objects with the same superior logical relationship node, and the object is a logical relationship node or a conditional statement setting area; the target second adding control is one of the second adding controls in the setting interface
Therefore, in the objects belonging to the same upper level logical relationship node, a second adding control can be displayed below the last object in the display sequence, and the second adding control is associated with the upper level logical relationship node, namely, the second adding control is used for adding the next level logical relationship node of the upper level logical relationship node.
It can be understood that, for a logical tree component, which logical relationship nodes can add their next level logical relationship nodes can be determined by pre-design.
In addition, the second operation may be a click operation on a target second addition control; the second adding control may be a control displayed with a second preset character (e.g., "add" or "+").
In step S25, in response to the second operation, a logical relationship node is added between the reference object and the target second addition control as a second target node.
The reference object is an object adjacent to the target second adding control, and the second target node is the same as a superior logical relationship node of the reference object.
Optionally, the reference object may be located above the target second adding control.
When the logical relationship nodes are added, a conditional statement setting area can be added for the added logical relationship nodes, so that a user can conveniently set the content of specific conditional statements under the added logical relationship nodes.
For example, as shown in fig. 4, when the second adding control 305 is clicked, a logical relationship node may be added between the conditional statement setting area 303 and the second adding control 305, where the logical relationship node added in fig. 4 is the same as the upper-level logical relationship node of the conditional statement setting area 303; or, for example, as shown in fig. 5, clicking the second adding control 305 may add a logical relationship node between the logical relationship node 302 and the second adding control 305, where the added logical relationship node in fig. 5 is the same as the upper logical relationship node of the logical relationship node 302.
In step S26, an association relationship between the second target node and an upper level logical relationship node to which the reference object belongs is displayed.
For example, in fig. 5, the logical tree component sequentially has a first level and a second level from left to right, and then the incidence relation between the logical relationship node of the first level and the logical relationship node of the next level can be represented by the indication line 304 passing through the logical relationship node of the first level and extending from the position of the first logical relationship node of the second level to the position of the last logical relationship node of the second level.
Then, after adding one logical relationship node through the second addition control, the indication line of the upper level logical relationship node passing through the added logical relationship node may be extended to the display position of the added logical relationship node to show the association relationship of the added logical relationship node with the upper level logical relationship node thereof.
As can be seen from the foregoing steps S24 to S26, in an embodiment of the present disclosure, the addition control of the logical relationship node may be followed below the logical relationship node or the conditional statement setting area in the same group (i.e., belonging to the same upper-level logical relationship node), and the association relationship is clear and not confused with the addition control of the conditional statement setting area, which further facilitates user operation and improves the setting efficiency of the conditional statement.
In one possible embodiment, the method further comprises:
receiving a third operation on the logical relationship node displayed with a preset mark, wherein the preset mark is used for identifying that the logical relationship node can switch the represented logical relationship;
and responding to the third operation, and switching the logical relationship represented by the logical relationship node corresponding to the third operation according to the predetermined sequence of the plurality of logical relationships.
The preset mark is used for identifying that the logical relationship node can switch the represented logical relationship. The preset mark may be a second preset character or a preset shape or a preset pattern, for example, the preset mark shown in fig. 6 may be a double-headed arrow 601.
In addition, the third operation may be a click operation on one of the logical relationship nodes on which the preset mark is displayed. For example, clicking on the logical relationship node shown in fig. 6, which displays the double-headed arrow 601, the logical relationship represented by the logical relationship node may be switched.
As can be seen from the above, in an embodiment of the present disclosure, when the logical relationship node is displayed, the node that can switch the logical relationship and the node that cannot switch the logical relationship can be distinguished by using the preset mark, so that the user operation is facilitated in one step, and the setting efficiency of the conditional statement is improved.
In one possible embodiment, the at least one logical relationship node represents a different logical relationship in a different display style. The display style may include at least one of a display shape, a size, and a color. For example, as shown in FIG. 6, the logical relationship nodes representing the logical relationship "and" "or" "and" (i.e., union) are different colors, wherein the different background fill patterns in FIG. 6 represent different colors.
As can be seen from the above, in one embodiment of the present disclosure, different logical relationships may be distinguished by different display styles (e.g., colors), so that a user can also recognize the logical relationship represented by the current logical relationship node only by the display styles.
If two logical relationship nodes currently represent the same logical relationship, but one of the logical relationship nodes can switch the logical relationship represented by the logical relationship node, and the other logical relationship node cannot switch the logical relationship represented by the logical relationship node, the display colors of the two logical relationship nodes are the same, and further, the display colors of the two logical relationship nodes are different in shade; or the background of one of the two logical relationship nodes is filled with a preset color, the background of the other logical relationship node is not filled with the color, and the color of the logical relationship character displayed on the logical relationship node which is not filled with the background color is the preset color; therefore, the logic relations which are currently represented by the two logic relation nodes are visually shown to be the same, but the functions of switching the logic relations are different, so that the operation of a user is facilitated, and the setting efficiency of the conditional statement is improved.
In one possible implementation, the at least one logical relationship node represents one of the following logical relationships:
logical relations and, logical relations or, a union of logical relations.
Wherein, the union of the logical relationships means: and merging the set of data meeting the first conditional statement with the set of data meeting the second conditional statement.
As can be seen from the above, in an embodiment of the present disclosure, the logical relationship node may not only represent a logical relationship or a logical relationship, but also represent a union set of logical relationships, and the types of the logical relationship nodes represented by the logical relationship node are increased, so as to further improve the diversity of the conditional statement settings.
In one possible embodiment, the conditional statement setting area includes a plurality of field input boxes, and each adjacent two field input boxes are connected.
The connection of two adjacent field input boxes means that the boundaries of two adjacent field input boxes are overlapped, for example, two adjacent field input boxes are connected end to end, and as shown in fig. 7, a plurality of field input boxes 701 belonging to the same conditional statement setting area are sequentially connected end to end.
As can be seen from the above, in one embodiment of the present disclosure, field input boxes belonging to the same conditional statement setting area can also be compactly displayed to be closely associated through the concatenation of the field input boxes, so that it is visually more clearly possible to distinguish which field input box belongs to which conditional statement setting area, that is, which field input box is used to set which conditional statement.
In addition, the conditional statement setting area may further include an additional box, and the additional box displays setting prompt information of the conditional statement in the conditional statement setting area, for example, when a certain conditional statement is used to set "device type", the additional box may display prompt information of "select device". It is understood that the additional box and the field input box in the conditional statement setting area can also be linked (i.e. the additional box is connected end to end with the adjacent field input box), for example, as shown in fig. 7, the additional box can be located at the head and connected end to end with the adjacent field input box.
In a possible implementation manner, in the setting interface, a deletion control is displayed at the end of each conditional statement setting area;
the method further comprises the following steps:
receiving a fourth operation on a target deleting control, wherein the target deleting control is one of deleting controls in the setting interface;
and in response to the fourth operation, deleting the conditional statement setting area associated with the target deletion control.
The fourth operation may be a click operation on the target deletion control. For example, as shown in fig. 3, a deletion control 306 is displayed at the end of each conditional statement setting area 303, and then the conditional statement setting areas 303 in the same row as the deletion control 306 can be deleted by clicking the deletion control 306.
In a possible implementation manner, the tail ends of at least part of conditional statement setting areas in the setting interface are respectively displayed with third adding controls;
the method further comprises the following steps:
receiving a fifth operation on a target third adding control, wherein the target third adding control is one of the third adding controls in the setting interface;
in response to the fifth operation, taking a conditional statement setting area in front of the target third adding control as a first sub-area, adding a conditional statement setting area below the first sub-area as a second sub-area, and moving the target third adding control to the end of the second sub-area;
wherein the first sub-region and the second sub-region belong to the same conditional statement.
As can be seen from the above, in the embodiment of the present disclosure, a conditional statement may further include a plurality of sub-regions, each of which is a conditional statement setting region, that is, a conditional statement may further include a plurality of conditional region setting regions, and in this case, a sub-region may be added to a conditional statement of a certain logical relationship node by operating the third addition control.
The fifth operation may be a click operation on a target third add control. For example, as shown in fig. 8, a third adding control 801 is respectively displayed at the end of the conditional statement setting area 303 capable of adding a sub-area, and then the third adding control 801 is clicked, so that the conditional statement setting area 303 in front of the clicked third adding control 801 can be used as a sub-area, and a new sub-area is added to the sub-area (i.e., a conditional statement setting area is added), and then the two sub-areas belong to the same conditional statement.
In addition, when a third addition control is further displayed at the end of the conditional statement setting area in the setting interface, the first addition control associated with the logical relationship node to which the conditional statement setting area belongs is located behind the third addition control.
It will be appreciated that after adding a sub-region as described above under the conditional statement in front of the third addition control 801, and the first addition control 301 behind the third addition control 801, move to the end of the newly added sub-region, respectively, as shown in fig. 8.
In one possible embodiment, in the case that at least two conditional statement setting areas belong to the same conditional statement, a preset flag is displayed at the front end of the first conditional statement setting area of the at least two conditional statement setting areas.
The preset identifier is used for identifying a conditional statement that at least two conditional statement setting areas exist (i.e., at least two sub-areas exist). For example, as shown in fig. 8, if the letter a is a preset mark, two conditional sentence setting areas displayed in parallel on the right side of the letter a belong to the same conditional sentence.
In a possible embodiment, a constraint condition setting area may be further displayed below a conditional statement setting area, and the constraint condition setting area is used for setting a constraint condition of the content in the conditional statement setting area, for example, as shown in fig. 9, if the content in the constraint condition setting area 901 is "total times greater than or equal to 1", the specific content of a conditional statement identified by letter a shown in fig. 9 is "20220118 has been AB tested, and the total times of tests made by 20220121-22 is greater than or equal to 1".
Whether each conditional statement setting area has a corresponding constraint condition setting area or not can be designed and determined in advance.
In addition, it should be noted that the first addition control, the second addition control, and the third addition control may adopt different colors or shapes to distinguish from one another, so as to further improve the efficiency of setting the conditional statement by the user.
In summary, in the interaction method based on conditional statements according to another embodiment of the present disclosure, the above embodiments may be combined with each other. The above-described embodiments and the embodiments obtained by appropriate combination of the above-described embodiments may be as described in the first aspect or the second aspect below.
In the first aspect, the initial architecture of the logical tree component is as shown in fig. 10, and when entering the setting interface of the conditional statement, the setting interface is as shown in fig. 10, which has a logical relationship node in the first level, three logical relationship nodes in the second level, a conditional statement setting area 303 under each logical relationship node in the second level, and a first adding control 301 and a second adding control 305.
Wherein, clicking the first adding control 301 can increase the conditional statement setting area of the logical relationship node belonging to the second level; clicking the second adding control 305 can add the next-level path relation node of the second-level logical relation node (i.e. add the third-level logical relation node); clicking on the logical relationship node with the bidirectional arrow can switch the logical relationships represented by the logical relationship node in the order of "and/or and (i.e., union)".
In addition, in the setting interface, the display colors of the logical relationship nodes are different when the logical relationship nodes represent different logical relationships; a conditional statement setting area includes a plurality of field input boxes connected end to end, where the fields are keywords of the conditional statement.
From the above, based on the initial architecture of the logical tree components shown in fig. 10, the initial architecture can be expanded to the expanded architecture shown in fig. 10 by operating the aforementioned first adding control 301 and second adding control 305.
In the second aspect, the initial architecture of the logic tree component is as shown in fig. 11, and when entering the setting interface of the conditional statement, the setting interface is as shown in fig. 11, which shows a first level logical relationship node, two second level logical relationship nodes, a conditional statement setting area 303 under each second level logical relationship node, and a first adding control 301, a second adding control 305, and a third adding control 801.
Wherein, clicking the first adding control 301 can increase the conditional statement setting area of the logical relationship node belonging to the second level; clicking the second adding control 305 can add the next-level path relation node of the first-level logical relation node (i.e. add the second-level logical relation node); clicking the third adding control 801 can add a conditional statement setting area, but the added conditional statement setting area and the conditional statement setting area in front of the third adding control 801 respectively belong to a sub-area of the same conditional statement, and simultaneously, a preset character (for example, a letter A, B shown in fig. 11) is displayed at the front end of the first sub-area of all the sub-areas belonging to the same conditional statement; clicking on the logical relationship node with the bidirectional arrow can switch the logical relationships represented by the logical relationship node in the order of "and/or and (i.e., union)".
In addition, in the setting interface, the display colors of the logical relationship nodes are different when the logical relationship nodes represent different logical relationships; a conditional statement setting area includes a plurality of field input boxes connected end to end, where the fields are keywords of the conditional statement.
As can be seen from the above, based on the initial architecture of the logical tree component shown in fig. 11, the initial architecture can be expanded to the expanded architecture shown in fig. 11 by operating the first adding control 301, the second adding control 305, and the third adding control 801.
In addition, the embodiment of the present disclosure may be applied to conditional queries, and a specific application example may be as shown in fig. 12, that is, a specific query statement is set through a logical tree component in "advanced filtering" shown in fig. 12, so that a "query" button shown in fig. 12 is clicked, and then a result meeting the condition may be queried.
In summary, in one embodiment of the present disclosure, the following processes may be implemented:
1. the first adding control of the same group of conditional statement setting area follows the same group of conditional statement setting area, so that a user can clearly determine the adding mode of the same group of conditional statement setting area;
2. the adding control used for adding the logical relationship node follows the lower part of the last object in the objects of the same upper-level logical relationship node, so as to be distinguished from the first adding control in the same group of conditional statement setting area;
3. 6 states (as shown in fig. 6) of switchable and non-switchable functions of logical relationship "and/or" and "can be provided, which help a user to quickly switch a relational statement and distinguish the statement relationship, wherein a logical relationship node with a bidirectional arrow indicates that a logical relationship can be switched, and a logical relationship node without a bidirectional arrow indicates that a logical relationship is not switchable; moreover, when the logical relationship is switched, the logical relationship nodes can be switched according to the sequence of 'and' or 'and' by clicking the logical relationship nodes;
4. different logical relations are distinguished by different colors, so that a user can distinguish the logical relation represented by the current logical relation node only by color without looking at character identifiers on the logical relation node;
5. each of the conditional statement setting areas includes a plurality of field input boxes joined together, and a single conditional statement setting area may be deletable.
Namely, according to the embodiment of the present disclosure, a complex query statement may be structured into a single conditional statement, and the conditional statement is associated with each other and/or with each other (i.e., union) in a visualization method, so that a user who does not understand a code can set the conditional statement quickly, and a use environment of most low codes in a data analysis scene is satisfied.
Fig. 13 is a block diagram illustrating a conditional statement-based interaction apparatus according to an exemplary embodiment, and referring to fig. 13, the conditional statement-based interaction apparatus 130 includes a setting interface display module 131, a first receiving module 132, and a first adding module 133.
A setting interface display module 131 configured to display a setting interface of the conditional statement; the setting interface comprises at least one first adding control, at least one logic relation node and at least one conditional statement setting area; at least part of the at least one logical relationship node is respectively associated with at least one conditional statement setting area, the logical relationship node with the associated conditional statement setting area is in one-to-one correspondence with the at least one first adding control, and the display position of the first adding control is associated with the display position of the logical relationship node corresponding to the first adding control through the conditional statement setting area associated with the logical relationship node corresponding to the first adding control;
a first receiving module 132 configured to receive a first operation on a target first addition control of the at least one first addition control;
a first adding module 133, configured to, in response to the first operation, display an added conditional statement setting area and an association relationship between the added conditional statement setting area and a first target node, where the first target node is a logical relationship node associated with the target first adding control.
In a possible implementation manner, the first adding control is located at the end of the last conditional statement setting area in the first target area, and the first target area includes a conditional statement setting area associated with the logical relationship node corresponding to the first adding control.
In one possible embodiment, in the setting interface, the at least one logical relationship node is divided into at least one hierarchy level;
a second adding control is also displayed below the target object, the target object is the last object in the display sequence in the objects with the same superior logical relationship node, and the object is a logical relationship node or a conditional statement setting area;
the device further comprises:
a second receiving module configured to receive a second operation on a target second adding control, wherein the target second adding control is one of the second adding controls in the setting interface;
a second adding module configured to add a logical relationship node between a reference object and the target second adding control as a second target node in response to the second operation, where the reference object is an object adjacent to the target second adding control, and the second target node is the same as a superior logical relationship node of the reference object;
a first display module configured to display an association relationship between the second target node and an upper level logical relationship node to which the reference object belongs.
In one possible embodiment, the apparatus further comprises:
a third receiving module, configured to receive a third operation on a logical relationship node on which a preset mark is displayed, where the preset mark is used to identify that the logical relationship node can switch the represented logical relationship;
and the relationship switching module is configured to switch the logical relationship represented by the logical relationship node corresponding to the third operation according to a predetermined sequence of a plurality of logical relationships in response to the third operation.
In one possible embodiment, the at least one logical relationship node represents a different logical relationship in a different display style.
In one possible implementation, the at least one logical relationship node represents one of the following logical relationships:
logical relationship and, logical relationship or, logical relationship union.
In one possible embodiment, the conditional statement setting area includes a plurality of field input boxes, and each adjacent two field input boxes are connected.
In one possible embodiment of the method according to the invention,
in the setting interface, a deleting control is respectively displayed at the tail end of each conditional statement setting area;
the device further comprises:
a fourth receiving module, configured to receive a fourth operation on a target deletion control, where the target deletion control is one of deletion controls in the setting interface;
a deleting module configured to delete the conditional statement setting area associated with the target deletion control in response to the fourth operation.
In a possible implementation manner, the tail ends of at least part of conditional statement setting areas in the setting interface are respectively displayed with third adding controls;
the device further comprises:
a fifth receiving module, configured to receive a fifth operation on a target third addition control, where the target third addition control is one of the third addition controls in the setting interface;
a third adding module, configured to respond to the fifth operation, take a conditional statement setting area in front of the target third adding control as a first sub-area, add a conditional statement setting area below the first sub-area as a second sub-area, and move the target third adding control to the end of the second sub-area;
wherein the first sub-region and the second sub-region belong to the same conditional statement.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 14 is a block diagram illustrating an electronic device 1400 in accordance with an example embodiment. Referring to fig. 14, the electronic device includes:
a processor 1410;
a memory 1420 to store the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the conditional statement-based interaction method described above.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as a memory comprising instructions, executable by the processor 1410 of the electronic device 1400 to perform the above-described method is also provided. Alternatively, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
According to a fifth aspect of the disclosed embodiment, an electronic device is also provided. As shown in fig. 15, the electronic device 1500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, or the like.
Referring to fig. 15, electronic device 1500 may include one or more of the following components: processing components 1502, memory 1504, power components 1506, multimedia components 1508, audio components 1510, input/output (I/O) interfaces 1512, sensor components 1514, and communication components 1516.
The processing component 1502 generally controls overall operation of the electronic device 1500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1502 may include one or more processors 1520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1502 may include one or more modules that facilitate interaction between processing component 1502 and other components. For example, processing component 1502 may include a multimedia module to facilitate interaction between multimedia component 1508 and processing component 1502.
The memory 1504 is configured to store various types of data to support operations at the electronic device 1500. Examples of such data include instructions for any application or method operating on the electronic device 1500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1506 provides power to the various components of the electronic device 1500. The power components 1506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 1500.
The multimedia component 1508 includes a screen that provides an output interface between the electronic device 1500 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, multimedia component 1508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 1500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1510 is configured to output and/or input audio signals. For example, the audio component 1510 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 1500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1504 or transmitted via the communication component 1516. In some embodiments, audio component 1510 also includes a speaker for outputting audio signals.
The I/O interface 1512 provides an interface between the processing component 1502 and peripheral interface modules, which can be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1514 includes one or more sensors for providing status assessment of various aspects of the electronic device 1500. For example, the sensor assembly 1514 can detect an open/closed state of the electronic device 1500, the relative positioning of components, such as a display and keypad of the electronic device 1500, the sensor assembly 1514 can also detect a change in position of the electronic device 1500 or a component of the electronic device 1500, the presence or absence of user contact with the electronic device 1500, orientation or acceleration/deceleration of the electronic device 1500, and a change in temperature of the electronic device 1500. The sensor assembly 1514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1516 is configured to facilitate wired or wireless communication between the electronic device 1500 and other devices. The electronic device 1500 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 1516 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 1500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described interaction method based on conditional statements.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as a memory, for example, comprising instructions, executable by the processor 1520 of the electronic device 1500 to perform the above-described method is also provided. Alternatively, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided a computer program product comprising a computer program/instructions which, when executed by a processor, implements the conditional statement-based interaction method described above.
Moreover, the conditional statement-based interaction scheme provided herein is not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The structure required to construct a system embodying aspects of the present invention will be apparent from the above description. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the devices in an embodiment may be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in an information extraction scheme according to embodiments of the present disclosure. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on a computer readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website, or provided on a carrier signal, or provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
In view of the above, other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. An interactive method based on conditional statements, the method comprising:
displaying a setting interface of the conditional statement; the setting interface comprises at least one first adding control, at least one logic relation node and at least one conditional statement setting area; at least part of the at least one logical relationship node is respectively associated with at least one conditional statement setting area, the logical relationship node with the associated conditional statement setting area is in one-to-one correspondence with the at least one first adding control, and the display position of the first adding control is associated with the display position of the logical relationship node corresponding to the first adding control through the conditional statement setting area associated with the logical relationship node corresponding to the first adding control;
receiving a first operation on a target first adding control in the at least one first adding control;
and responding to the first operation, displaying an added conditional statement setting area and an association relation between the added conditional statement setting area and a first target node, wherein the first target node is a logical relation node associated with the target first adding control.
2. The method of claim 1, wherein the first add control is located at an end of a last conditional statement setting area in a first target area, and wherein the first target area comprises a conditional statement setting area associated with a logical relationship node corresponding to the first add control.
3. The method according to claim 1, wherein in the setting interface, the at least one logical relationship node is divided into at least one hierarchy level;
a second adding control is also displayed below the target object, the target object is the last object in the display sequence in the objects with the same superior logical relationship node, and the object is a logical relationship node or a conditional statement setting area;
the method further comprises the following steps:
receiving a second operation on a target second adding control, wherein the target second adding control is one of the second adding controls in the setting interface;
responding to the second operation, adding a logical relationship node between a reference object and the target second adding control to serve as a second target node, wherein the reference object is an object adjacent to the target second adding control, and the second target node is the same as a superior logical relationship node of the reference object;
and displaying the incidence relation between the second target node and the upper level logical relation node to which the reference object belongs.
4. The method of claim 1, further comprising:
receiving a third operation on the logical relationship node displayed with a preset mark, wherein the preset mark is used for identifying the logical relationship represented by the logical relationship node which can be switched;
and responding to the third operation, and switching the logical relationship represented by the logical relationship node corresponding to the third operation according to the predetermined sequence of the plurality of logical relationships.
5. The method according to claim 1, wherein the at least one logical relationship node has a different display style when representing different logical relationships.
6. The method of claim 1, wherein the at least one logical relationship node represents one of the following logical relationships:
logical relations and, logical relations or, a union of logical relations.
7. An apparatus for interacting based on conditional sentences, the apparatus comprising:
a setting interface display module configured to display a setting interface of the conditional statement; the setting interface comprises at least one first adding control, at least one logic relation node and at least one conditional statement setting area; at least part of the at least one logical relationship node is respectively associated with at least one conditional statement setting area, the logical relationship node with the associated conditional statement setting area is in one-to-one correspondence with the at least one first adding control, and the display position of the first adding control is associated with the display position of the logical relationship node corresponding to the first adding control through the conditional statement setting area associated with the logical relationship node corresponding to the first adding control;
a first receiving module configured to receive a first operation on a target first adding control in the at least one first adding control;
and the first adding module is configured to respond to the first operation and display an added conditional statement setting area and an association relation between the added conditional statement setting area and a first target node, wherein the first target node is a logical relation node associated with the target first adding control.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the conditional statement-based interaction method of any one of claims 1 to 6.
9. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the conditional statement-based interaction method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the conditional statement-based interaction method of any one of claims 1 to 6.
CN202210750169.3A 2022-06-29 2022-06-29 Interactive method, device and equipment based on conditional statement and storage medium Pending CN115129188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210750169.3A CN115129188A (en) 2022-06-29 2022-06-29 Interactive method, device and equipment based on conditional statement and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210750169.3A CN115129188A (en) 2022-06-29 2022-06-29 Interactive method, device and equipment based on conditional statement and storage medium

Publications (1)

Publication Number Publication Date
CN115129188A true CN115129188A (en) 2022-09-30

Family

ID=83379502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210750169.3A Pending CN115129188A (en) 2022-06-29 2022-06-29 Interactive method, device and equipment based on conditional statement and storage medium

Country Status (1)

Country Link
CN (1) CN115129188A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070266017A1 (en) * 2006-05-12 2007-11-15 Sap Ag Search Query Formulation
CN106933889A (en) * 2015-12-31 2017-07-07 华为技术有限公司 For regular collocation method, display methods and the client screened
CN108052571A (en) * 2017-12-07 2018-05-18 网易乐得科技有限公司 For the method and device of data screening, storage medium and electronic equipment
CN111008326A (en) * 2019-08-27 2020-04-14 嘉兴太美医疗科技有限公司 Clinical study subject retrieval method, device and computer readable medium
CN111198984A (en) * 2018-11-16 2020-05-26 阿里巴巴集团控股有限公司 User group screening method and device and electronic equipment
CN113535749A (en) * 2020-04-17 2021-10-22 阿里巴巴集团控股有限公司 Query statement generation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070266017A1 (en) * 2006-05-12 2007-11-15 Sap Ag Search Query Formulation
CN106933889A (en) * 2015-12-31 2017-07-07 华为技术有限公司 For regular collocation method, display methods and the client screened
CN108052571A (en) * 2017-12-07 2018-05-18 网易乐得科技有限公司 For the method and device of data screening, storage medium and electronic equipment
CN111198984A (en) * 2018-11-16 2020-05-26 阿里巴巴集团控股有限公司 User group screening method and device and electronic equipment
CN111008326A (en) * 2019-08-27 2020-04-14 嘉兴太美医疗科技有限公司 Clinical study subject retrieval method, device and computer readable medium
CN113535749A (en) * 2020-04-17 2021-10-22 阿里巴巴集团控股有限公司 Query statement generation method and device

Similar Documents

Publication Publication Date Title
CN106020784B (en) Application message display method and device and terminal
JP6457655B2 (en) Method, apparatus, program, and recording medium for creating graphical user interface
CN105930147B (en) Application function starting method and device
CN108710306B (en) Control method and device of intelligent equipment and computer readable storage medium
CN112752047A (en) Video recording method, device, equipment and readable storage medium
CN104834559B (en) Notification message display method and device
CN108038102B (en) Method and device for recommending expression image, terminal and storage medium
CN109358785B (en) Theme preview method and device
CN109918001B (en) Interface display method, device and storage medium
CN111651104A (en) Method and device for displaying application page and storage medium
CN105099878A (en) Information display method, device and terminal
CN104461236A (en) Method and device for displaying application icons
CN104572853A (en) Searching method and searching device
CN107193554A (en) A kind of method and apparatus for generating front-end code
CN108320208A (en) Vehicle recommends method and device
CN113238752A (en) Code generation method and device, electronic equipment and storage medium
CN104333503B (en) Dialogue display methods and device in instant messaging scene
CN105589575B (en) Input method call method and device
CN104951522B (en) Method and device for searching
CN112130719B (en) Page display method, device and system, electronic equipment and storage medium
CN109725806A (en) Website edit methods and device
CN112581104A (en) Information processing method, information processing apparatus, electronic device, storage medium, and program product
CN113010157A (en) Code generation method and device
CN105740356B (en) Method and device for marking target audio
CN106886541B (en) Data searching method and device for data searching

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination