Interaction method, device, equipment and storage medium based on conditional statements

By designing a clear conditional statement setting interface in the visual interface of the logic tree component, including clear control and function correlation, it solves the problem that users find it difficult to understand the function of adding controls in the statement, and improves the efficiency of conditional statement setting.

CN115129188BActive Publication Date: 2025-02-11BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210750169.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2025-02-11
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

The function of adding controls to statements in the visual interface of the existing logic tree component is not clear, which causes users to learn the specific functions of the control in advance when setting conditional statements, which increases the setting time and reduces user efficiency.

Method used

Provide an interactive method based on conditional statements. By displaying the setting interface of conditional statements, including the first addition control, logical relationship node and conditional statement setting area, the user can clearly understand the functions and association relationships of each control, thereby simplifying the conditions. The statement setting process.

Benefits of technology

Through clear interface design and functional relationships, users can quickly understand and use controls, shorten the time to set conditional statements, and improve user usage efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115129188B_ABST
    Figure CN115129188B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure provide an interactive method, device, equipment and storage medium based on conditional statements. The method includes: displaying a setting interface for conditional statements; the setting interface includes at least one first added control, at least one logical relationship node and at least one conditional statement setting area; receiving a first operation on a target first added control in at least one first added control; in response to the first operation, displaying an added conditional statement setting area, and an association relationship between the added conditional statement setting area and the first target node, the first target node being a logical relationship node associated with the target first added control. Therefore, the embodiments of the present disclosure can shorten the time for users to set conditional statements, thereby improving user efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to an interaction method, device, equipment and storage medium based on conditional statements. Background Art

[0002] The logical tree component (Issue Tree) is a method of analyzing existing problems and their related relationships in a tree-like graph. It transforms seemingly disordered and messy known problems into a tree-like model that can predict unknown instances through some technical means; the query condition statement can be composed of several branch clauses, and there are certain logical relationships between these branch clauses. Therefore, different query condition statements can be configured through the logical tree component.

[0003] Among them, the logic tree component can include multiple levels. However, in the prior art, the specific function of the control for adding conditional statements is not clear. That is, only from the visual interface of the logic tree component, the user cannot clearly understand which conditional statement adding control is used to add conditional statements at which level. Only by trying to operate can the specific functions of these adding controls be clarified.

[0004] It can be seen that the function of adding control statements in the visual interface of the current logic tree component is not clear, so when users set conditional statements through the logic tree component, they often need to learn the specific functions of the corresponding added controls in advance. This prolongs the time for users to set conditional statements, thereby reducing user efficiency. Summary of the invention

[0005] The present disclosure provides an interactive method, apparatus, device and storage medium based on conditional statements, so as to at least solve the problem that the function of statement adding controls in the visual interface of the logic tree component in the related art is unclear, thereby prolonging the setting time of the conditional statement and reducing the user's efficiency.

[0006] The technical solution of the present disclosure is as follows:

[0007] According to a first aspect of an embodiment of the present disclosure, there is provided an interaction method based on a conditional statement, the method comprising:

[0008] A setting interface for displaying conditional statements; the 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 of the at least one logical relationship node are respectively associated with at least one conditional statement setting area, and there is a logical relationship node in the associated conditional statement setting area, which corresponds one-to-one with the at least one first adding control, and the display position of the first adding control and the display position of the logical relationship node corresponding to the first adding control are associated through the conditional statement setting area associated with the logical relationship node corresponding to the first adding control;

[0009] receiving a first operation on a target first added control in the at least one first added control;

[0010] In response to the first operation, the added conditional statement setting area and the association relationship between the added conditional statement setting area and the first target node are displayed, and the first target node is a logical relationship node associated with the target first added control.

[0011] In a possible implementation, 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 a logical relationship node corresponding to the first adding control.

[0012] In a possible implementation manner, in the setting interface, the at least one logical relationship node is divided into at least one level;

[0013] A second adding control is also displayed below the target object, the target object being the last object in the display order among the objects with the same upper logical relationship node, the object being a logical relationship node or a conditional statement setting area;

[0014] The method further comprises:

[0015] receiving a second operation on a target second added control, wherein the target second added control is one of the second added controls in the setting interface;

[0016] In response to the second operation, a logical relationship node is added between the reference object and the target second added control as a second target node, wherein the reference object is an object adjacent to the target second added control, and the second target node is the same as the upper logical relationship node of the reference object;

[0017] The association relationship between the second target node and the upper-level logical relationship node to which the reference object belongs is displayed.

[0018] In one possible implementation, the method further includes:

[0019] receiving a third operation on a logic relationship node displayed with a preset mark, wherein the preset mark is used to identify that the logic relationship node can switch the represented logic relationship;

[0020] In response to the third operation, the logical relationship represented by the logical relationship node corresponding to the third operation is switched according to a predetermined order of multiple logical relationships.

[0021] In a possible implementation manner, the at least one logical relationship node has different display styles when representing different logical relationships.

[0022] In a possible implementation manner, the at least one logical relationship node represents one of the following logical relationships:

[0023] Logical relationship and, logical relationship or, logical relationship union.

[0024] In a possible implementation manner, the conditional statement setting area includes a plurality of field input boxes, and every two adjacent field input boxes are connected.

[0025] In a possible implementation manner, in the setting interface, a delete control is displayed at the end of each of the conditional statement setting areas;

[0026] The method further comprises:

[0027] receiving a fourth operation on a target deletion control, wherein the target deletion control is one of the deletion controls in the setting interface;

[0028] In response to the fourth operation, the conditional statement setting area associated with the target deletion control is deleted.

[0029] In a possible implementation manner, at least some of the conditional statement setting areas in the setting interface are respectively displayed with third adding controls at their ends;

[0030] The method further comprises:

[0031] receiving a fifth operation on a target third added control, wherein the target third added control is one of the third added controls in the setting interface;

[0032] In response to the fifth operation, the conditional statement setting area in front of the target third added control is used as the first sub-area, a conditional statement setting area is added below the first sub-area as the second sub-area, and the target third added control is moved to the end of the second sub-area;

[0033] The first sub-region and the second sub-region belong to the same conditional statement.

[0034] According to a second aspect of an embodiment of the present disclosure, a conditional statement-based interaction device is provided, the device comprising:

[0035] A setting interface display module is configured to display a setting interface of a conditional statement; the 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 of the at least one logical relationship node are respectively associated with at least one conditional statement setting area, and there is a logical relationship node of the associated conditional statement setting area, which corresponds one-to-one with the at least one first adding control, and the display position of the first adding control and the display position of the logical relationship node corresponding to the first adding control are associated through the conditional statement setting area associated with the logical relationship node corresponding to the first adding control;

[0036] A first receiving module is configured to receive a first operation on a target first added control in the at least one first added control;

[0037] The first adding module is configured to display the added conditional statement setting area and the association relationship between the added conditional statement setting area and the first target node in response to the first operation. The first target node is a logical relationship node associated with the target first added control.

[0038] In a possible implementation, 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 a logical relationship node corresponding to the first adding control.

[0039] In a possible implementation manner, in the setting interface, the at least one logical relationship node is divided into at least one level;

[0040] A second adding control is also displayed below the target object, the target object being the last object in the display order among the objects with the same upper logical relationship node, the object being a logical relationship node or a conditional statement setting area;

[0041] The device also includes:

[0042] A second receiving module is configured to receive a second operation on a target second added control, wherein the target second added control is one of the second added controls in the setting interface;

[0043] A second adding module is configured to, in response to the second operation, add a logical relationship node between the reference object and the target second adding control 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 the upper logical relationship node of the reference object;

[0044] The first display module is configured to display the association relationship between the second target node and the upper-level logical relationship node to which the reference object belongs.

[0045] In one possible implementation, the device further includes:

[0046] A third receiving module is configured to receive a third operation on a logical relationship node displayed with a preset mark, wherein the preset mark is used to identify that the logical relationship node can switch the logical relationship represented;

[0047] The relationship switching module is configured to switch the logical relationship represented by the logical relationship node corresponding to the third operation in response to the third operation according to a predetermined order of multiple logical relationships.

[0048] In a possible implementation manner, the at least one logical relationship node has different display styles when representing different logical relationships.

[0049] In a possible implementation manner, the at least one logical relationship node represents one of the following logical relationships:

[0050] Logical relationship and, logical relationship or, logical relationship union.

[0051] In a possible implementation manner, the conditional statement setting area includes a plurality of field input boxes, and every two adjacent field input boxes are connected.

[0052] In a possible implementation manner, in the setting interface, a delete control is displayed at the end of each of the conditional statement setting areas;

[0053] The device also includes:

[0054] a fourth receiving module, configured to receive a fourth operation on a target deletion control, wherein the target deletion control is one of the deletion controls in the setting interface;

[0055] The deletion module is configured to delete the conditional statement setting area associated with the target deletion control in response to the fourth operation.

[0056] In a possible implementation manner, at least some of the conditional statement setting areas in the setting interface are respectively displayed with third adding controls at their ends;

[0057] The device also includes:

[0058] a fifth receiving module, configured to receive a fifth operation on a target third added control, wherein the target third added control is one of the third added controls in the setting interface;

[0059] A third adding module is configured to, in response to the fifth operation, use the conditional statement setting area in front of the target third adding control as the first sub-area, add a conditional statement setting area below the first sub-area as the second sub-area, and move the target third adding control to the end of the second sub-area;

[0060] The first sub-region and the second sub-region belong to the same conditional statement.

[0061] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising:

[0062] processor;

[0063] a memory for storing instructions executable by the processor;

[0064] The processor is configured to execute the instructions to implement the conditional statement-based interaction method provided by the present disclosure.

[0065] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in 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 described in the first aspect above.

[0066] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the conditional statement-based interaction method provided by the present disclosure.

[0067] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0068] The technical solution provided by the embodiments of the present disclosure can display a conditional statement setting interface, wherein 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 of the nodes in the at least one logical relationship node are respectively associated with the at least one conditional statement setting area, and there is a logical relationship node of the associated conditional statement setting area, which corresponds one-to-one 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; wherein, after receiving a first operation on a target first adding control in the aforementioned at least one first adding control, a conditional statement setting area can be added in response to the first operation, and the added conditional statement setting area and the association relationship between the added conditional statement setting area and the first target node are displayed, wherein the first target node is the logical relationship node associated with the target first adding control.

[0069] Therefore, in an embodiment of the present disclosure, for a logical relationship node to which a conditional statement setting area can be added, it 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. In this way, the user can clearly understand from the above setting interface which logical relationship node each first adding control is used to add the conditional statement setting area, thereby shortening the time for users to set conditional statements and improving user efficiency.

[0070] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0072] Figure 1 is a flow chart of an interactive method based on conditional statements according to an exemplary embodiment;

[0073] Figure 2 is a flow chart of another interaction method based on conditional statements according to an exemplary embodiment;

[0074] Figure 3 is a schematic diagram of the effect of clicking the first added control in an embodiment of the present disclosure;

[0075] Figure 4 This is one of the schematic diagrams of the effect of clicking the second added control in the embodiment of the present disclosure;

[0076] Figure 5 This is the second schematic diagram of the effect of clicking the second added control in the embodiment of the present disclosure;

[0077] Figure 6 These are six display schematic diagrams of logical relationship nodes in the embodiments of the present disclosure;

[0078] Figure 7 is a display schematic diagram of a field input box and an additional box in an embodiment of the present disclosure;

[0079] Figure 8 is a schematic diagram of the effect of clicking the third added control in the embodiment of the present disclosure;

[0080] Fig. 9 is a schematic diagram showing a constraint condition setting area in an embodiment of the present disclosure;

[0081] Fig.10 is a schematic diagram of a change from an initial architecture to an extended architecture of a logic tree component in an embodiment of the present disclosure;

[0082] Fig.11 is a schematic diagram of another change of a logic tree component from an initial architecture to an extended architecture in an embodiment of the present disclosure;

[0083] Fig.12 It is a schematic diagram of the interface display of the application of the interactive method based on conditional statements according to an embodiment of the present disclosure;

[0084] Fig.13 is a block diagram of a conditional statement-based interaction device according to an exemplary embodiment;

[0085] Fig.14 is a block diagram of an electronic device according to an exemplary embodiment;

[0086] Fig.15 is a block diagram of another electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0087] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0088] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0089] The user information (including but not limited to the user's device information, user personal information, etc.) and related data involved in this disclosure are all information authorized by the user or by all parties.

[0090] Figure 1 1 is a flow chart of an interactive method based on conditional statements according to an exemplary embodiment. The interactive method based on conditional statements can be applied to electronic devices, such as mobile phones, computers, etc. Figure 1 As shown, the interaction method based on conditional statements includes the following steps S11 to S13.

[0091] In step S11, a setting interface for conditional statements is displayed.

[0092] Among them, the 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 of the at least one logical relationship node are respectively associated with at least one conditional statement setting area, and there is a logical relationship node of the associated conditional statement setting area, which corresponds one-to-one with the at least one first adding control, and the display position of the first adding control and the display position of the logical relationship node corresponding to the first adding control are associated through the conditional statement setting area associated with the logical relationship node corresponding to the first adding control.

[0093] Therefore, in one embodiment of the present disclosure, among the logical relationship nodes included in the setting interface, at least one logical relationship node is associated with at least one conditional statement setting area (that is, at least one conditional statement setting area exists in the subordinate object of at least one logical relationship node), and these nodes have a first add control associated with them. Among them, which nodes in the above at least one logical relationship node can have a corresponding first add control can be determined by pre-design. That is, the initial architecture of a logical component for users to use can be pre-designed and determined.

[0094] In addition, the conditional statement setting area is used to set the content of the conditional statement. For example, the user can enter different fields of the conditional statement and the logical relationship between the fields in the conditional statement setting area.

[0095] It should be noted here that the above-mentioned logical relationship nodes and conditional statement setting areas constitute a logical tree component, that is, the logical tree component includes at least one level, and each level 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 gradually decrease in the order of the first level, the second level, and the third level, that is, the upper logical relationship node of the third level belongs to the second level, and the upper logical relationship node of the second level belongs to the first level.

[0096] For example, the logic tree component includes 5 logical relationship nodes and 5 conditional statement setting areas, among which logical relationship nodes D and E belong to the third level, the upper node of logical relationship node D is logical relationship node B, the upper node of logical relationship node E is logical relationship node C, logical relationship nodes B and C both belong to logical relationship node A, the first conditional statement setting area to the third conditional statement setting area belong to logical relationship node D, and the fourth conditional statement setting area to the fifth conditional statement setting area belong to logical relationship node E.

[0097] In addition, the above conditional statements can be query conditional statements. For example, when it is necessary to query data that meets predetermined requirements through query conditional statements, the user can convert the predetermined requirements into conditional statements in advance, and then query the data that meets the conditional statements. In the embodiment of the present disclosure, the logic tree component can configure different query conditional statements through the logic tree component, thereby making it more convenient for users to query data.

[0098] In step S12, a first operation on a target first added control among the at least one first added control is received.

[0099] In step S13, in response to the first operation, the added conditional statement setting area and the association relationship between the added conditional statement setting area and the first target node are displayed.

[0100] Among them, the first target node is the logical relationship node associated with the target first added control.

[0101] In addition, the above-mentioned first operation may be a click operation on the above-mentioned target first adding control; the above-mentioned first adding control may be a control displaying a first preset character (for example, "add" or "increase" or "newly added" or "+").

[0102] It can be seen that in one embodiment of the present disclosure, the first add control is used to add a conditional statement setting area, and the first add control is associated with which logical relationship node, and the first add control is used to add the conditional statement setting area belonging to which logical relationship node.

[0103] It can be seen from the above steps S11 to S13 that in one embodiment of the present disclosure, a conditional statement setting interface can be displayed, and 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 of the nodes in the at least one logical relationship node are respectively associated with the at least one conditional statement setting area, and there is a logical relationship node of the associated conditional statement setting area, which corresponds one-to-one 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; wherein, after receiving a first operation on a target first adding control in the aforementioned at least one first adding control, a conditional statement setting area can be added in response to the first operation, and the added conditional statement setting area and the association relationship between the added conditional statement setting area and the first target node are displayed, wherein the first target node is the logical relationship node associated with the target first adding control.

[0104] Therefore, in an embodiment of the present disclosure, for a logical relationship node to which a conditional statement setting area can be added, it 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. In this way, the user can clearly understand from the above setting interface which logical relationship node each first adding control is used to add the conditional statement setting area, thereby shortening the time for users to set conditional statements and improving user efficiency.

[0105] Figure 2 1 is a flow chart of an interactive method based on conditional statements according to an exemplary embodiment. The interactive method based on conditional statements can be applied to electronic devices, such as mobile phones, computers, etc. Figure 2 As shown, the interaction method based on conditional statements includes the following steps S21 to S23.

[0106] In step S21, a setting interface for conditional statements is displayed.

[0107] Among them, the 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 of the at least one logical relationship node are respectively associated with at least one conditional statement setting area, and there is a logical relationship node of the associated conditional statement setting area, which corresponds one-to-one with the at least one first adding control, and the display position of the first adding control and the display position of the logical relationship node corresponding to the first adding control are associated through the conditional statement setting area associated with the logical relationship node corresponding to the first adding control.

[0108] Therefore, in one embodiment of the present disclosure, among the logical relationship nodes included in the setting interface, at least one logical relationship node is associated with at least one conditional statement setting area (that is, at least one conditional statement setting area exists in the subordinate object of at least one logical relationship node), and these nodes have a first add control associated with them. Among them, which nodes in the above at least one logical relationship node can have a corresponding first add control can be determined by pre-design. That is, the initial architecture of a logical component for users to use can be pre-designed and determined.

[0109] In addition, the conditional statement setting area is used to set the content of the conditional statement. For example, the user can enter different fields of the conditional statement and the logical relationship between the fields in the conditional statement setting area.

[0110] It should be noted here that the above-mentioned logical relationship nodes and conditional statement setting areas constitute a logical tree component, that is, the logical tree component includes at least one level, and each level 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 gradually decrease in the order of the first level, the second level, and the third level, that is, the upper logical relationship node of the third level belongs to the second level, and the upper logical relationship node of the second level belongs to the first level.

[0111] For example, the logic tree component includes 5 logical relationship nodes and 5 conditional statement setting areas, among which logical relationship nodes D and E belong to the third level, the upper node of logical relationship node D is logical relationship node B, the upper node of logical relationship node E is logical relationship node C, logical relationship nodes B and C both belong to logical relationship node A, the first conditional statement setting area to the third conditional statement setting area belong to logical relationship node D, and the fourth conditional statement setting area to the fifth conditional statement setting area belong to logical relationship node E.

[0112] The logic tree component can display each level horizontally in the above setting interface, that is, the level of the levels displayed from left to right gradually decreases. For example, when the logic tree component includes three levels, the first level, the second level and the third level are displayed from left to right in sequence. The relationship between a logic relationship node and its subordinate logic relationship nodes or conditional statement setting areas can be represented by an indicator line, for example Figure 3 As shown, the five conditional statement setting areas 303 associated with the logical relationship node 302 are arranged and displayed in sequence from top to bottom, and the indicator line 304 passes through the logical relationship node 302 and extends from the first position to the second position, wherein the first position is the display position of the first conditional statement setting area among all the conditional statement setting areas associated with the logical relationship node 302, and the second position is the display position of the last conditional statement setting area among all the conditional statement setting areas associated with the logical relationship node 302.

[0113] 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.

[0114] That is, in one embodiment of the present disclosure, the first added control can 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 added control, thereby achieving the purpose of associating the display position of the first added control with the display position of the logical relationship node associated with the first added control through the conditional statement setting area associated with the logical relationship node associated with the first added control.

[0115] That is, in one embodiment of the present disclosure, the first adding control of the same group of conditional statement setting areas follows the same group of conditional statement setting areas, so that the user can clearly understand the adding method of the conditional statement setting areas.

[0116] For example Figure 3 As shown, the first add control 301 is located at the end of the last one of the five conditional statement setting areas 303 associated with the logical relationship node 302 , and by clicking the first add control 301 , a conditional statement setting area belonging to the logical relationship node 302 can be added.

[0117] In addition, the above conditional statements can be query conditional statements. For example, when it is necessary to query data that meets predetermined requirements through query conditional statements, the user can convert the predetermined requirements into conditional statements in advance, and then query the data that meets the conditional statements. In the embodiment of the present disclosure, the logic tree component can configure different query conditional statements through the logic tree component, thereby making it more convenient for users to query data.

[0118] In step S22, a first operation on a target first added control among the at least one first added control is received.

[0119] In step S23, in response to the first operation, the added conditional statement setting area and the association relationship between the added conditional statement setting area and the first target node are displayed.

[0120] Among them, the first target node is the logical relationship node associated with the target first added control.

[0121] In addition, the above-mentioned first operation may be a click operation on the above-mentioned target first adding control; the above-mentioned first adding control may be a control displaying a first preset character (for example, "add" or "increase" or "newly added" or "+").

[0122] It can be seen that in one embodiment of the present disclosure, the first add control is used to add a conditional statement setting area, and the first add control is associated with which logical relationship node, and the first add control is used to add the conditional statement setting area belonging to which logical relationship node.

[0123] It can be understood that, in the case where the first add control is located at the end of the last conditional statement setting area in the above-mentioned first target area, if the above-mentioned first operation is received and after a conditional statement setting area belonging to the logical relationship node associated with the target first add control is added below the last conditional statement setting area in the first target area, the target first add control can be moved down to the end of the conditional statement setting area currently added, so that the first add 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 it currently exists, thereby facilitating user use.

[0124] In addition, when indicating the relationship between a logic relationship node and its subordinate logic relationship nodes or conditional statement setting areas (for example Figure 3 As shown), if the above-mentioned first operation is received, and after a conditional statement setting area belonging to the logical relationship node associated with the target first added control is added below the last conditional statement setting area in the first target area, the indicator line passing through the logical relationship node associated with the target first added control can also 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 added control (that is, the above-mentioned first target node).

[0125] In step S24, a second operation on the target second adding control is received.

[0126] Among them, in the setting interface, the at least one logical relationship node is divided into at least one level; a second adding control is also displayed below the target object, the target object is the last object in the display order among the objects with the same upper logical relationship node, and the object is a logical relationship node or a conditional statement setting area; the above-mentioned target second adding control is one of the second adding controls in the setting interface

[0127] From this, it can be seen that among the objects belonging to the same upper-level logical relationship node, a second add control can also be displayed below the last object in the display order. The second add control is associated with the upper-level logical relationship node, that is, the second add control is used to add the next-level logical relationship node of the upper-level logical relationship node.

[0128] It is understandable that, for a logic tree component, which logic relationship nodes can add their next level logic relationship nodes can be designed and determined in advance.

[0129] In addition, the second operation may be a click operation on the target second adding control; the second adding control may be a control displaying a second preset character (eg, “add” or “increase” or “newly added” or “+”).

[0130] In step S25, in response to the second operation, a logical relationship node is added between the reference object and the target second added control as a second target node.

[0131] The reference object is an object adjacent to the target second added control, and the second target node is the same as the upper logical relationship node of the reference object.

[0132] Optionally, the reference object may be located above the target second added control.

[0133] When adding a logical relationship node, a conditional statement setting area may also be added for the added logical relationship node, so that the user can set the content of the specific conditional statement under the added logical relationship node.

[0134] For example Figure 4 As shown, by clicking the second add control 305, a logical relationship node can be added between the conditional statement setting area 303 and the second add control 305, wherein: Figure 4 The logical relationship node added in is the same as the upper logical relationship node of the conditional statement setting area 303; or, for example Figure 5 As shown, by clicking the second add control 305, a logical relationship node can be added between the logical relationship node 302 and the second add control 305, wherein: Figure 5The logical relationship node added in is the same as the parent logical relationship node of the logical relationship node 302.

[0135] In step S26, the association relationship between the second target node and the upper-level logical relationship node to which the reference object belongs is displayed.

[0136] Among them, the relationship between a logical relationship node and its subordinate logical relationship nodes can be represented by an indicator line, for example Figure 5 In the figure, the logical tree components are the first level and the second level from left to right. The indication line 304 passes through the logical relationship nodes of the first level and extends from the position of the first logical relationship node of the second level to the position of the last logical relationship node to indicate the association relationship between the logical relationship nodes of the first level and their subordinate logical relationship nodes.

[0137] Then, after adding a logical relationship node through the second adding control, the indicator line passing through the parent logical relationship node of the added logical relationship node can be extended to the display position of the added logical relationship node to show the association relationship between the added logical relationship node and its parent logical relationship node.

[0138] It can be seen from the above steps S24 to S26 that in one embodiment of the present disclosure, the adding control of the logical relationship node can follow the logical relationship node or the conditional statement setting area of ​​the same group (that is, belonging to the same upper-level logical relationship node), and the association relationship is clear, and it is not confused with the adding control of the conditional statement setting area, which further facilitates user operation and improves the setting efficiency of conditional statements.

[0139] In one possible implementation, the method further includes:

[0140] receiving a third operation on a logic relationship node displayed with a preset mark, wherein the preset mark is used to identify that the logic relationship node can switch the represented logic relationship;

[0141] In response to the third operation, the logical relationship represented by the logical relationship node corresponding to the third operation is switched according to a predetermined order of multiple logical relationships.

[0142] The preset mark is used to identify the logical relationship represented by the logical relationship node. The preset mark can be a second preset character or a preset shape or a preset pattern, for example Figure 6 The preset mark shown may be a double-headed arrow 601 .

[0143] In addition, the third operation may be a click operation on one of the logical relationship nodes that displays a preset mark. Figure 6As shown in FIG. , a logical relationship node with a bidirectional arrow 601 is displayed, and the logical relationship represented by the logical relationship node can be switched.

[0144] From the above, it can be seen that in one embodiment of the present disclosure, when displaying logical relationship nodes, the above-mentioned preset marks can be used to distinguish between nodes that can switch logical relationships and nodes that cannot switch logical relationships, thereby facilitating user operations in one step and improving the setting efficiency of conditional statements.

[0145] In a possible implementation, the at least one logical relationship node has different display styles when representing different logical relationships. The display style may include at least one of display shape, size, and color. Figure 6 As shown, the colors of the logical relationship nodes representing the logical relationship "and", "or" and "and" (i.e., union) are different, among which, Figure 6 Different background fill patterns represent different colors.

[0146] As can be seen from the above, in one embodiment of the present disclosure, different logical relationships can be distinguished by different display styles (such as colors), so that the user can identify the logical relationship represented by the current logical relationship node only by the display style.

[0147] Among them, if two logical relationship nodes currently represent the same logical relationship, but one of the logical relationship nodes can switch the logical relationship it represents, while the other logical relationship node cannot switch the logical relationship it represents, then 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 depth; or the background of one of the two logical relationship nodes is filled with a preset color, and the background of the other logical relationship node is not filled with a color, and the color of the logical relationship characters displayed on the logical relationship node that is not filled with the background color is the preset color; thereby visually showing that the two logical relationship nodes currently represent the same logical relationship, but the functions of whether the logical relationship can be switched are different, thereby facilitating user operations in one step and improving the efficiency of setting conditional statements.

[0148] In a possible implementation manner, the at least one logical relationship node represents one of the following logical relationships:

[0149] Logical relationship and, logical relationship or, logical relationship union.

[0150] The above logical relationship union means: the set of data that meets the first conditional statement and the set of data that meets the second conditional statement are taken as the union.

[0151] From the above, it can be seen that in one embodiment of the present disclosure, the logical relationship node can not only represent the logical relationship or, the logical relationship and, but also the logical relationship union, which increases the types of logical relationship nodes represented by the logical relationship node, thereby further improving the diversity of conditional statement settings.

[0152] In a possible implementation manner, the conditional statement setting area includes a plurality of field input boxes, and every two adjacent field input boxes are connected.

[0153] The connection of two adjacent field input boxes means that part of the boundaries of the two adjacent field input boxes overlap, for example, the two adjacent field input boxes are connected end to end, such as Figure 7 As shown, multiple field input boxes 701 belonging to the same conditional statement setting area are connected end to end in sequence.

[0154] From the above, it can be seen that in one embodiment of the present disclosure, the field input boxes can be connected so that the field input boxes belonging to the same conditional statement setting area can be displayed compactly and closely associated, so that it can be visually more clearly distinguished which field input box belongs to which conditional statement setting area, that is, distinguish which field input box is used to set which conditional statement.

[0155] In addition, the conditional statement setting area may also include an additional box, in which the setting prompt information of the conditional statement in the conditional statement setting area is displayed. For example, if a conditional statement is used to set "device type", the prompt information "select device" may be displayed in the additional box. It is understandable that the additional box and the field input box in the conditional statement setting area where it is located may also be connected (that is, the additional box and the adjacent field input box are connected end to end), for example Figure 7 As shown, the additional box can be placed in the first position, and then the adjacent field input boxes are connected end to end.

[0156] In a possible implementation manner, in the setting interface, a delete control is displayed at the end of each of the conditional statement setting areas;

[0157] The method further comprises:

[0158] receiving a fourth operation on a target deletion control, wherein the target deletion control is one of the deletion controls in the setting interface;

[0159] In response to the fourth operation, the conditional statement setting area associated with the target deletion control is deleted.

[0160] The fourth operation may be a click operation on the target deletion control. Figure 3As shown, a delete control 306 is displayed at the end of each conditional statement setting area 303. By clicking the delete control 306, the conditional statement setting area 303 in the same row as the delete control 306 can be deleted.

[0161] In a possible implementation manner, at least some of the conditional statement setting areas in the setting interface are respectively displayed with third adding controls at their ends;

[0162] The method further comprises:

[0163] receiving a fifth operation on a target third added control, wherein the target third added control is one of the third added controls in the setting interface;

[0164] In response to the fifth operation, the conditional statement setting area in front of the target third added control is used as the first sub-area, a conditional statement setting area is added below the first sub-area as the second sub-area, and the target third added control is moved to the end of the second sub-area;

[0165] The first sub-region and the second sub-region belong to the same conditional statement.

[0166] From the above, it can be seen that in the embodiments of the present disclosure, a conditional statement can also include multiple sub-areas, each sub-area is a conditional statement setting area, that is, a conditional statement can also include multiple conditional area setting areas. In this case, a sub-area can be added to a conditional statement of a certain logical relationship node by operating the above-mentioned third adding control.

[0167] The fifth operation may be a click operation on the third added control of the target. Figure 8 As shown, a third add control 801 is displayed at the end of the conditional statement setting area 303 to which a sub-area can be added. When the third add control 801 is clicked, the conditional statement setting area 303 in front of the clicked third add control 801 can be used as a sub-area, and a new sub-area can be added to the sub-area (i.e., a conditional statement setting area is added). Then, the two sub-areas belong to the same conditional statement.

[0168] In addition, when a third adding control is displayed at the end of the conditional statement setting area in the above setting interface, the first adding control associated with the logical relationship node to which the conditional statement setting area belongs is located after the third adding control.

[0169] It can be understood that after adding the above-mentioned sub-area below the conditional statement in front of the third added control 801, the third added control 801 and the first added control 301 after the third added control 801 are moved to the end of the newly added sub-area, respectively, such as Figure 8 shown.

[0170] In a possible implementation manner, when at least two conditional statement setting areas belong to the same conditional statement, a preset mark is displayed at the front end of the first conditional statement setting area among the at least two conditional statement setting areas.

[0171] The preset identifier is used to identify a conditional statement that has at least two conditional statement setting areas (ie, at least two sub-areas). Figure 8 As shown, letter A is a preset mark, and the two conditional statement setting areas displayed in parallel on the right side of letter A belong to the same conditional statement.

[0172] In a possible implementation manner, a constraint setting area may also be displayed below a conditional statement setting area, and the constraint setting area is used to set the constraint conditions of the content in the conditional statement setting area, for example Fig. 9 As shown, the content in the constraint condition setting area 901 is "the total number of times is greater than or equal to 1 time", then Fig. 9 The specific content of the conditional statement marked by the letter A shown is "AB testing was done on 20220118, and the total number of tests done on 20220121-22 is greater than or equal to 1 time."

[0173] Whether each conditional statement setting area has a corresponding constraint condition setting area can be designed and determined in advance.

[0174] In addition, it should be noted that the first adding control, the second adding control, and the third adding control may be distinguished by different colors or shapes, so as to further improve the efficiency of the user in setting conditional statements.

[0175] In summary, in another embodiment of the interactive method based on conditional statements of the present disclosure, the above embodiments can be combined with each other. The specific implementation methods that can be obtained by the above contents and appropriate combinations can be as described in the first aspect or the second aspect below.

[0176] First, the initial architecture of the logic tree component is as follows Fig.10 As shown, when entering the setting interface of the conditional statement, the setting interface is as follows Fig.10A first-level logic relationship node, three second-level logic relationship nodes, a conditional statement setting area 303 under each second-level logic relationship node, and a first adding control 301 and a second adding control 305 are displayed.

[0177] Among them, clicking the first add control 301 can add a conditional statement setting area for the logical relationship node belonging to the second level; clicking the second add control 305 can add the next level path relationship node of the second level logical relationship node (that is, adding the third level logical relationship node); clicking the logical relationship node with a bidirectional arrow can switch the logical relationship represented by the logical relationship node in the order of "and, or, and (that is, union)".

[0178] In addition, in the above setting interface, the display colors of logical relationship nodes representing different logical relationships are different; a conditional statement setting area includes multiple field input boxes connected end to end, and the fields described here are keywords of the conditional statement.

[0179] From the above, we can see that based on Fig.10 The initial structure of the logic tree component shown in FIG. 1 can be expanded to the following structure by operating the first adding control 301 and the second adding control 305. Fig.10 The extended schema is shown.

[0180] Secondly, the initial architecture of the logic tree component is as follows Fig.11 As shown, when entering the setting interface of the conditional statement, the setting interface is as follows Fig.11 A first-level logic relationship node, two second-level logic relationship nodes, a conditional statement setting area 303 under each second-level logic relationship node, and a first add control 301 , a second add control 305 and a third add control 801 are displayed.

[0181] Among them, by clicking the first add control 301, a conditional statement setting area belonging to the second-level logical relationship node can be added; by clicking the second add control 305, a next-level path relationship node of the first-level logical relationship node can be added (i.e., a second-level logical relationship node is added); by clicking the third add control 801, a conditional statement setting area can be added, but the added conditional statement setting area and the conditional statement setting area in front of the third add control 801 belong to a sub-area of ​​the same conditional statement respectively, and a preset character (e.g. Fig.11 The letters A and B shown in the figure); by clicking the logical relationship node with a bidirectional arrow, the logical relationship represented by the logical relationship node can be switched in the order of "and, or, and (i.e., union)".

[0182] In addition, in the above setting interface, the display colors of logical relationship nodes representing different logical relationships are different; a conditional statement setting area includes multiple field input boxes connected end to end, and the fields described here are keywords of the conditional statement.

[0183] From the above, we can see that based on Fig.11 The initial architecture of the logic tree component shown in FIG. 8 can be expanded to the following by operating the first adding control 301, the second adding control 305, and the third adding control 801. Fig.11 The extended schema is shown.

[0184] In addition, the embodiments of the present disclosure can be applied to conditional queries. Specific application examples can be as follows: Fig.12 As shown, through Fig.12 Set the specific query statement in the logical tree component in the "Advanced Filter" shown in the figure, so as to click Fig.12 Click the "Search" button shown in the figure to query the results that meet the conditions.

[0185] In summary, in one embodiment of the present disclosure, the following process can be implemented:

[0186] 1. The first add control of the same group conditional statement setting area follows the same group conditional statement setting area, so that the user can clearly understand how to add the same group conditional statement setting area;

[0187] 2. An add control for adding a logical relationship node is located below the last object in the objects of the same upper logical relationship node, thereby being distinguished from the first add control in the same group of conditional statement setting areas;

[0188] 3. It can provide 6 states of switchable and non-switchable functions of the logical relationship "and, or, and" (such as Figure 6 As shown), it helps users quickly switch relational statements and distinguish statement relationships. Among them, the logical relationship node with a double-sided arrow indicates that the logical relationship can be switched, and the logical relationship node without a double-sided arrow indicates that the logical relationship cannot be switched; and when switching the logical relationship, clicking the logical relationship node can switch in the order of "and, or, and";

[0189] 4. Different logical relationships are distinguished by different colors, so that users can identify the logical relationship represented by the current logical relationship node only by color without looking at the text identifier on the logical relationship node;

[0190] 5. Each conditional statement setting area includes multiple field input boxes that are connected, and a single conditional statement setting area can be deleted.

[0191] That is, the embodiments of the present disclosure can structure complex query statements into a single conditional statement, and use a visual method to associate the conditional statements with and, or, and (i.e., union), so that users who do not understand the code can also quickly set the conditional statements, meeting the usage environment of most low-code in data analysis scenarios.

[0192] Fig.13 is a block diagram of a conditional statement interaction device according to an exemplary embodiment, referring to Fig.13 The conditional statement-based interaction device 130 includes a setting interface display module 131 , a first receiving module 132 and a first adding module 133 .

[0193] The setting interface display module 131 is configured to display a setting interface of a conditional statement; the 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 of the at least one logical relationship node are respectively associated with at least one conditional statement setting area, and there is a logical relationship node of the associated conditional statement setting area, which corresponds one-to-one with the at least one first adding control, and the display position of the first adding control and the display position of the logical relationship node corresponding to the first adding control are associated through the conditional statement setting area associated with the logical relationship node corresponding to the first adding control;

[0194] The first receiving module 132 is configured to receive a first operation on a target first adding control in the at least one first adding control;

[0195] The first adding module 133 is configured to display the added conditional statement setting area and the association relationship between the added conditional statement setting area and the first target node in response to the first operation. The first target node is a logical relationship node associated with the target first added control.

[0196] In a possible implementation, 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 a logical relationship node corresponding to the first adding control.

[0197] In a possible implementation manner, in the setting interface, the at least one logical relationship node is divided into at least one level;

[0198] A second adding control is also displayed below the target object, the target object being the last object in the display order among the objects with the same upper logical relationship node, the object being a logical relationship node or a conditional statement setting area;

[0199] The device also includes:

[0200] A second receiving module is configured to receive a second operation on a target second added control, wherein the target second added control is one of the second added controls in the setting interface;

[0201] A second adding module is configured to, in response to the second operation, add a logical relationship node between the reference object and the target second adding control 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 the upper logical relationship node of the reference object;

[0202] The first display module is configured to display the association relationship between the second target node and the upper-level logical relationship node to which the reference object belongs.

[0203] In one possible implementation, the device further includes:

[0204] A third receiving module is configured to receive a third operation on a logical relationship node displayed with a preset mark, wherein the preset mark is used to identify that the logical relationship node can switch the logical relationship represented;

[0205] The relationship switching module is configured to switch the logical relationship represented by the logical relationship node corresponding to the third operation in response to the third operation according to a predetermined order of multiple logical relationships.

[0206] In a possible implementation manner, the at least one logical relationship node has different display styles when representing different logical relationships.

[0207] In a possible implementation manner, the at least one logical relationship node represents one of the following logical relationships:

[0208] Logical relationship and, logical relationship or, logical relationship union.

[0209] In a possible implementation manner, the conditional statement setting area includes a plurality of field input boxes, and every two adjacent field input boxes are connected.

[0210] In one possible implementation,

[0211] In the setting interface, a delete control is displayed at the end of each conditional statement setting area;

[0212] The device also includes:

[0213] a fourth receiving module, configured to receive a fourth operation on a target deletion control, wherein the target deletion control is one of the deletion controls in the setting interface;

[0214] The deletion module is configured to delete the conditional statement setting area associated with the target deletion control in response to the fourth operation.

[0215] In a possible implementation manner, at least some of the conditional statement setting areas in the setting interface are respectively displayed with third adding controls at their ends;

[0216] The device also includes:

[0217] a fifth receiving module, configured to receive a fifth operation on a target third added control, wherein the target third added control is one of the third added controls in the setting interface;

[0218] A third adding module is configured to, in response to the fifth operation, use the conditional statement setting area in front of the target third adding control as the first sub-area, add a conditional statement setting area below the first sub-area as the second sub-area, and move the target third adding control to the end of the second sub-area;

[0219] The first sub-region and the second sub-region belong to the same conditional statement.

[0220] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0221] Fig.14 is a block diagram of an electronic device 1400 according to an exemplary embodiment. Fig.14 , the electronic device comprises:

[0222] Processor 1410;

[0223] A memory 1420 for storing instructions executable by the processor;

[0224] The processor is configured to execute the instructions to implement the above-mentioned interaction method based on conditional statements.

[0225] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the above instructions can be executed by the processor 1410 of the electronic device 1400 to complete the above method. Optionally, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0226] According to a fifth aspect of the embodiments of the present disclosure, an electronic device is also provided. Fig.15As shown, 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, a fitness device, a personal digital assistant, etc.

[0227] Reference Fig.15 , the electronic device 1500 may include one or more of the following components: a processing component 1502 , a memory 1504 , a power component 1506 , a multimedia component 1508 , an audio component 1510 , an input / output (I / O) interface 1512 , a sensor component 1514 , and a communication component 1516 .

[0228] The processing component 1502 generally controls the overall operation of the electronic device 1500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1502 may include one or more processors 1520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1502 may include one or more modules to facilitate the interaction between the processing component 1502 and other components. For example, the processing component 1502 may include a multimedia module to facilitate the interaction between the multimedia component 1508 and the processing component 1502.

[0229] The memory 1504 is configured to store various types of data to support operations on the electronic device 1500. Examples of such data include instructions for any application or method operating on the electronic device 1500, contact data, phone book data, messages, pictures, videos, etc. The memory 1504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.

[0230] The power supply component 1506 provides power to the various components of the electronic device 1500. The power supply component 1506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1500.

[0231] The multimedia component 1508 includes a screen that provides an output interface between the electronic device 1500 and the 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 input signals from the 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 boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1508 includes a front camera and / or a rear camera. When the electronic device 1500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0232] The audio component 1510 is configured to output and / or input audio signals. For example, the audio component 1510 includes a microphone (MIC), and when the electronic device 1500 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1504 or sent via the communication component 1516. In some embodiments, the audio component 1510 also includes a speaker for outputting audio signals.

[0233] I / O interface 1512 provides an interface between processing component 1502 and peripheral interface modules, such as 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.

[0234] The sensor assembly 1514 includes one or more sensors for providing various aspects of status assessment for the electronic device 1500. For example, the sensor assembly 1514 can detect the open / closed state of the electronic device 1500, the relative positioning of components, such as the display and keypad of the electronic device 1500, and the sensor assembly 1514 can also detect the position change 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, the orientation or acceleration / deceleration of the electronic device 1500, and the temperature change 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 an optical 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 accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0235] The communication component 1516 is configured to facilitate wired or wireless communication between the electronic device 1500 and other devices. The electronic device 1500 can 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 a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0236] 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, microcontrollers, microprocessors or other electronic components to execute the conditional statement-based interaction method described above.

[0237] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the above instructions can be executed by the processor 1520 of the electronic device 1500 to complete the above method. Alternatively, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0238] In an exemplary embodiment, a computer program product is also provided, including a computer program / instruction, and when the computer program is executed by a processor, the above-mentioned interaction method based on conditional statements is implemented.

[0239] In addition, the interactive scheme based on conditional statements provided here is not inherently related to any specific computer, virtual system or other equipment. Various general systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required by the system with the scheme of the present invention. In addition, the present invention is not directed to any specific programming language yet. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described here, and the description of the above specific language is for disclosing the best mode of the present invention.

[0240] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0241] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those expressly recited in each claim. Rather, as reflected in the claims, inventive aspects lie in less than all of the features of the individual embodiments previously disclosed. Therefore, the claims that follow the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the present invention.

[0242] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0243] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.

[0244] The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all of the functions of some or all of the components in the information extraction scheme according to the disclosed embodiment. The present invention can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0245] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.

[0246] In summary, those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0247] It should be understood that the present disclosure is not limited to the exact structures that have been 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

1. An interactive method based on conditional statements, characterized in that: The method comprises: A setting interface for displaying conditional statements; the 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 of the at least one logical relationship node are respectively associated with at least one conditional statement setting area, and there is a logical relationship node in the associated conditional statement setting area, which corresponds one-to-one with the at least one first adding control, and the display position of the first adding control and the display position of the logical relationship node corresponding to the first adding control are associated 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 added control in the at least one first added control; In response to the first operation, displaying the added conditional statement setting area and the association relationship between the added conditional statement setting area and the first target node, where the first target node is a logical relationship node associated with the target first added control; The method further comprises: receiving a third operation on a logic relationship node displayed with a preset mark, wherein the preset mark is used to identify that the logic relationship node can switch the represented logic relationship; In response to the third operation, switching the logical relationship represented by the logical relationship node corresponding to the third operation according to a predetermined order of multiple logical relationships; A third adding control is respectively displayed at the end of at least part of the conditional statement setting area in the setting interface; The method further comprises: receiving a fifth operation on a target third added control, wherein the target third added control is one of the third added controls in the setting interface; In response to the fifth operation, the conditional statement setting area in front of the target third added control is used as the first sub-area, a conditional statement setting area is added below the first sub-area as the second sub-area, and the target third added control is moved to the end of the second sub-area; The first sub-region and the second sub-region belong to the same conditional statement.

2. The method according to claim 1, characterized in that 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 a logical relationship node corresponding to the first adding control.

3. The method according to claim 1, characterized in that In the setting interface, the at least one logical relationship node is divided into at least one level; A second adding control is also displayed below the target object, the target object being the last object in the display order among the objects with the same upper logical relationship node, the object being a logical relationship node or a conditional statement setting area; The method further comprises: receiving a second operation on a target second added control, wherein the target second added control is one of the second added controls in the setting interface; In response to the second operation, a logical relationship node is added between the reference object and the target second added control as a second target node, wherein the reference object is an object adjacent to the target second added control, and the second target node is the same as the upper logical relationship node of the reference object; The association relationship between the second target node and the upper-level logical relationship node to which the reference object belongs is displayed.

4. The method according to claim 1, characterized in that: The at least one logical relationship node has different display styles when representing different logical relationships.

5. The method according to claim 1, characterized in that: The at least one logical relationship node represents one of the following logical relationships: Logical relationship and, logical relationship or, logical relationship union.

6. The method according to claim 1, characterized in that The conditional statement setting area includes a plurality of field input boxes, and every two adjacent field input boxes are connected.

7. The method according to claim 1, characterized in that In the setting interface, a delete control is displayed at the end of each conditional statement setting area; The method further comprises: receiving a fourth operation on a target deletion control, wherein the target deletion control is one of the deletion controls in the setting interface; In response to the fourth operation, the conditional statement setting area associated with the target deletion control is deleted.

8. A conditional statement based interactive device, characterized in that: The device comprises: A setting interface display module is configured to display a setting interface of a conditional statement; the 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 of the at least one logical relationship node are respectively associated with at least one conditional statement setting area, and there is a logical relationship node of the associated conditional statement setting area, which corresponds one-to-one with the at least one first adding control, and the display position of the first adding control and the display position of the logical relationship node corresponding to the first adding control are associated through the conditional statement setting area associated with the logical relationship node corresponding to the first adding control; A first receiving module is configured to receive a first operation on a target first added control in the at least one first added control; A first adding module is configured to display, in response to the first operation, 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 added control; The device also includes: A third receiving module is configured to receive a third operation on a logical relationship node displayed with a preset mark, wherein the preset mark is used to identify that the logical relationship node can switch the logical relationship represented; a relationship switching module, configured to, in response to the third operation, switch the logical relationship represented by the logical relationship node corresponding to the third operation according to a predetermined order of multiple logical relationships; A third adding control is respectively displayed at the end of at least part of the conditional statement setting area in the setting interface; The device also includes: a fifth receiving module, configured to receive a fifth operation on a target third added control, wherein the target third added control is one of the third added controls in the setting interface; A third adding module is configured to, in response to the fifth operation, use the conditional statement setting area in front of the target third adding control as the first sub-area, add a conditional statement setting area below the first sub-area as the second sub-area, and move the target third adding control to the end of the second sub-area; The first sub-region and the second sub-region belong to the same conditional statement.

9. The device according to claim 8, characterized in that 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 a logical relationship node corresponding to the first adding control.

10. The device according to claim 8, characterized in that In the setting interface, the at least one logical relationship node is divided into at least one level; A second adding control is also displayed below the target object, the target object being the last object in the display order among the objects with the same upper logical relationship node, the object being a logical relationship node or a conditional statement setting area; The device also includes: A second receiving module is configured to receive a second operation on a target second added control, wherein the target second added control is one of the second added controls in the setting interface; A second adding module is configured to, in response to the second operation, add a logical relationship node between the reference object and the target second adding control 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 the upper logical relationship node of the reference object; The first display module is configured to display the association relationship between the second target node and the upper-level logical relationship node to which the reference object belongs.

11. The device according to claim 8, characterized in that The at least one logical relationship node has different display styles when representing different logical relationships.

12. The device according to claim 8, characterized in that The at least one logical relationship node represents one of the following logical relationships: Logical relationship and, logical relationship or, logical relationship union.

13. The device according to claim 8, characterized in that The conditional statement setting area includes a plurality of field input boxes, and every two adjacent field input boxes are connected.

14. The device according to claim 8, characterized in that In the setting interface, a delete control is displayed at the end of each conditional statement setting area; The device also includes: a fourth receiving module, configured to receive a fourth operation on a target deletion control, wherein the target deletion control is one of the deletion controls in the setting interface; The deletion module is configured to delete the conditional statement setting area associated with the target deletion control in response to the fourth operation.

15. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the conditional statement-based interaction method as described in any one of claims 1 to 7.

16. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the interaction method based on conditional statements as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • User group screening method and device and electronic equipment

    CN111198984A

  • Query statement generation method and device

    CN113535749A